voice-changer/client/lib/webpack.worklet.common.js

32 lines
850 B
JavaScript
Raw Normal View History

2023-01-04 20:28:36 +03:00
/* eslint @typescript-eslint/no-var-requires: "off" */
const path = require("path");
module.exports = {
// mode: "development",
mode: "production",
entry: path.resolve(__dirname, "worklet/src/voice-changer-worklet-processor.ts"),
output: {
path: path.resolve(__dirname, "worklet/dist"),
filename: "index.js",
},
resolve: {
modules: [path.resolve(__dirname, "node_modules")],
extensions: [".ts", ".js"],
},
module: {
rules: [
{
test: [/\.ts$/, /\.tsx$/],
use: [
{
loader: "ts-loader",
options: {
configFile: "tsconfig.worklet.json",
},
},
],
},
],
2023-09-25 07:25:07 +03:00
},
2023-01-04 20:28:36 +03:00
};