pow_sha256-polyfill/webpack.config.js
2021-06-27 21:31:09 +05:30

43 lines
884 B
JavaScript

('use strict');
const path = require('path');
const dist = path.resolve(__dirname, 'dist');
module.exports = {
//devtool: 'inline-source-map',
//mode: 'development',
mode: 'production',
entry: './src/index.ts',
output: {
path: dist,
filename: 'bundle.js',
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
},
],
},
resolve: {
extensions: ['.ts', '.tsx', '.js'],
},
plugins: [],
optimization: {
minimizer: [
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
`...`,
],
},
experiments: {
// executeModule: true,
// outputModule: true,
//syncWebAssembly: true,
// topLevelAwait: true,
//asyncWebAssembly: true,
// layers: true,
// lazyCompilation: true,
},
};