2024-02-18 13:24:54 +01:00
|
|
|
const path = require("path");
|
|
|
|
const process = require("process");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
resolve: {
|
2024-03-16 18:07:53 +01:00
|
|
|
modules: [path.resolve(__dirname, "node_modules")],
|
|
|
|
alias: {
|
|
|
|
"@json": path.resolve(__dirname, "src/json"),
|
|
|
|
"~": path.resolve(__dirname, "src/js"),
|
|
|
|
},
|
|
|
|
extensions: [".js", ".ts", ".tsx", ".json"],
|
2024-02-18 13:24:54 +01:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
2024-04-26 01:36:34 +02:00
|
|
|
loader: 'esbuild-loader',
|
2024-02-18 13:24:54 +01:00
|
|
|
exclude: /node_modules/,
|
2024-04-26 01:36:34 +02:00
|
|
|
options: {
|
|
|
|
loader: 'tsx',
|
|
|
|
target: 'es2015'
|
|
|
|
}
|
2024-02-18 13:24:54 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|