Skip to content

Commit

Permalink
Merge pull request #399 from auth0/update-core-js
Browse files Browse the repository at this point in the history
[IDS-5273] Chore: Update deps to ensure using core-js 3.x
  • Loading branch information
sauntimo authored Jan 13, 2025
2 parents 2183fcc + 2e4a090 commit 24014d1
Show file tree
Hide file tree
Showing 5 changed files with 20,635 additions and 19,756 deletions.
9 changes: 4 additions & 5 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 project = require('../../package.json');
const config = require('./config.base.js');
Expand All @@ -18,10 +19,7 @@ config.output.filename = `auth0-authz.ui.${version}.js`;

config.resolve = {
extensions: [ '.js', '.jsx' ], // Add '.jsx' to the list of extensions to resolve
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify')
}
fallback: {}
};
config.module = {};
config.module.rules = ([
Expand Down Expand Up @@ -81,7 +79,8 @@ config.plugins = [
};
return JSON.stringify(chunks);
}
})
}),
new NodePolyfillPlugin()
];

config.optimization = {
Expand Down
Loading

0 comments on commit 24014d1

Please sign in to comment.