22 lines
468 B
JavaScript
22 lines
468 B
JavaScript
const path = require("path");
|
|
const process = require("process");
|
|
|
|
module.exports = {
|
|
resolve: {
|
|
modules: [path.resolve(__dirname, "node_modules")],
|
|
alias: {
|
|
"@json": path.resolve(__dirname, "src/json"),
|
|
"~": path.resolve(__dirname, "src/js"),
|
|
},
|
|
extensions: [".js", ".ts", ".tsx", ".json"],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
};
|