redux-devtools/extension/wrap.webpack.config.js
Nathan Bierema 20ebf725c1
Remove source map from page wrap bundle (#1292)
* Remove source maps from page wrap bundle

* Create thirty-bananas-agree.md

* Update thirty-bananas-agree.md
2022-12-11 15:46:55 +00:00

32 lines
643 B
JavaScript

const path = require('path');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
pagewrap: path.resolve(__dirname, 'src/pageScriptWrap'),
},
output: {
filename: '[name].bundle.js',
},
plugins: [
new ForkTsCheckerWebpackPlugin({
typescript: {
configFile: 'tsconfig.json',
},
}),
],
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
module: {
rules: [
{
test: /\.(js|ts)x?$/,
use: 'babel-loader',
exclude: /(node_modules|dist\/page\.bundle)/,
},
],
},
};