mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
32 lines
850 B
JavaScript
32 lines
850 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",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|