voice-changer/client/lib/webpack.worklet.common.js
2023-01-05 02:28:36 +09:00

32 lines
849 B
JavaScript

/* 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",
},
},
],
},
],
}
};