Skip to content

Commit

Permalink
Merge pull request #401 from auth0/fix-node-polyfill
Browse files Browse the repository at this point in the history
[Fix] Re-add node-polyfill to frontend bundle
  • Loading branch information
sauntimo authored Jan 14, 2025
2 parents d181cee + 8d4aac2 commit 74522d5
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 74522d5

Please sign in to comment.