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.
chainsafe-bls/webpack.config.cjs

30 lines
671 B
JavaScript
Raw Permalink Normal View History

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: {
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}}}],
},
optimization: {
// Disable minification for better debugging on Karma tests
minimize: false,
2022-04-14 17:16:06 +00:00
//splitChunks: false, runtimeChunk: false,
},
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,
},
};