This repository has been archived on 2023-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-11 15:08:15 +00:00
|
|
|
const ResolveTypeScriptPlugin = require("resolve-typescript-plugin");
|
|
|
|
|
2019-12-11 09:02:08 +00:00
|
|
|
module.exports = {
|
2020-01-31 10:17:26 +00:00
|
|
|
entry: "./src/index.ts",
|
2020-12-03 00:06:46 +00:00
|
|
|
mode: "production",
|
2020-01-31 10:17:26 +00:00
|
|
|
output: {
|
2020-12-02 23:36:58 +00:00
|
|
|
filename: "dist/bundle.js",
|
2020-01-31 10:17:26 +00:00
|
|
|
},
|
|
|
|
module: {
|
2022-04-14 17:16:06 +00:00
|
|
|
rules: [{test: /\.(ts)$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}],
|
2020-12-02 23:36:58 +00:00
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
// Disable minification for better debugging on Karma tests
|
|
|
|
minimize: false,
|
2022-04-14 17:16:06 +00:00
|
|
|
//splitChunks: false, runtimeChunk: false,
|
2020-12-02 23:36:58 +00:00
|
|
|
},
|
|
|
|
devtool: "source-map",
|
2022-04-14 17:16:06 +00:00
|
|
|
resolve: {
|
|
|
|
plugins: [new ResolveTypeScriptPlugin()],
|
|
|
|
fallback: {
|
|
|
|
crypto: false,
|
|
|
|
fs: false,
|
|
|
|
path: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
experiments: {
|
|
|
|
topLevelAwait: true,
|
|
|
|
},
|
2020-12-02 23:36:58 +00:00
|
|
|
};
|