Disable webpack minification for better debugging on Karma tests

This commit is contained in:
dapplion 2020-12-02 23:36:58 +00:00
parent 93499b3f34
commit 2f0db3f39f
1 changed files with 12 additions and 9 deletions

View File

@ -1,18 +1,21 @@
module.exports = { module.exports = {
entry: "./src/index.ts", entry: "./src/index.ts",
mode: "production", mode: "development",
node: { node: {
fs: "empty" fs: "empty",
}, },
output: { output: {
filename: "dist/bundle.js" filename: "dist/bundle.js",
}, },
resolve: { resolve: {
extensions: [".ts", ".js"] extensions: [".ts", ".js"],
}, },
module: { module: {
rules: [ rules: [{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}],
{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}} },
] optimization: {
} // Disable minification for better debugging on Karma tests
}; minimize: false,
},
devtool: "source-map",
};