Skip to content

Commit

Permalink
Re-add node-polyfill to frontend bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
sauntimo committed Jan 14, 2025
1 parent d181cee commit 8d4aac2
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build/webpack/config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const path = require('path');
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

Expand Down Expand Up @@ -81,6 +82,7 @@ config.plugins = [
return JSON.stringify(chunks);
}
}),
new NodePolyfillPlugin(),
new BundleAnalyzerPlugin({
reportFilename: 'report.html',
statsFilename: 'stats.json',
Expand Down
Loading

0 comments on commit 8d4aac2

Please sign in to comment.