25 lines
573 B
JavaScript
25 lines
573 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: [{
|
|
loader: "ts-loader",
|
|
options: {transpileOnly: true, onlyCompileBundledFiles: true}
|
|
}],
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
};
|