2023-05-20 19:34:27 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2023-06-06 06:51:42 +00:00
|
|
|
entry: {
|
|
|
|
main: './src/index.ts',
|
|
|
|
editor: './src/editor.ts',
|
2023-06-11 10:49:26 +00:00
|
|
|
experiments: './src/experiments.ts',
|
2023-06-06 06:51:42 +00:00
|
|
|
},
|
2023-05-20 19:34:27 +00:00
|
|
|
devtool: false,
|
|
|
|
target: "node",
|
|
|
|
mode: 'production',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
|
|
},
|
|
|
|
output: {
|
2023-06-06 06:51:42 +00:00
|
|
|
filename: '[name].js',
|
2023-05-27 09:35:08 +00:00
|
|
|
path: path.resolve(__dirname, '.'),
|
2023-05-20 19:34:27 +00:00
|
|
|
},
|
|
|
|
};
|