Skip to content

Commit

Permalink
fix core-js-builder work in NodeJS 17, add a workaround of `webpack…
Browse files Browse the repository at this point in the history
…` + NodeJS 17 issue

webpack/webpack#14532
  • Loading branch information
zloirock committed Oct 20, 2021
1 parent fd0ec2c commit 81cacee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@
- Added a workaround of [a BrowserFS NodeJS `process` polyfill bug](https://github.com/jvilk/bfs-process/issues/5) that incorrectly reports V8 version that's used in some cases of `core-js` feature detection
- Fixed normalization of `message` `AggregateError` argument
- Fixed order of arguments conversion in `Math.scale`, [a spec draft bug](https://github.com/rwaldron/proposal-math-extensions/issues/24)
- Fixed `core-js-builder` work in NodeJS 17, added a workaround of [`webpack` + NodeJS 17 issue](https://github.com/webpack/webpack/issues/14532)
- Added NodeJS 17.0 compat data mapping
- Added Opera Android 65 compat data mapping
- Updated Electron 16.0 compat data mapping
Expand Down
1 change: 1 addition & 0 deletions packages/core-js-builder/index.js
Expand Up @@ -78,6 +78,7 @@ module.exports = async function ({
output: {
path: tmpdir,
filename: tempFileName,
hashFunction: 'md5',
},
});

Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Expand Up @@ -16,6 +16,7 @@ module.exports = {
target: ['node', 'es5'],
stats: 'errors-warnings',
output: {
hashFunction: 'md5',
path: resolve(__dirname, './tests/bundles'),
},
};

0 comments on commit 81cacee

Please sign in to comment.