2022-10-31 19:29:48 +01:00
|
|
|
const path = require('path');
|
2022-11-10 22:53:17 +01:00
|
|
|
const process = require('process');
|
2022-10-31 19:29:48 +01:00
|
|
|
|
|
|
|
module.exports = {
|
2022-11-10 22:53:17 +01:00
|
|
|
mode: process.env.NODE_ENV || "development",
|
2022-10-31 19:29:48 +01:00
|
|
|
experiments: {
|
|
|
|
asyncWebAssembly: true
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
roots: [path.resolve('src/js'), path.resolve('node_modules')],
|
|
|
|
modules: [path.resolve('src/js'), path.resolve('node_modules')],
|
|
|
|
extensions: ['.js', '.ts', '.tsx']
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|