Skip to content

Commit 850d58c

Browse files
committedJan 23, 2023
build(babel): explicitly include polyfills for shipped proposals
1 parent af644e2 commit 850d58c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎babel.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ module.exports = {
3333
{
3434
// ? https://babeljs.io/docs/en/babel-preset-env#modules
3535
modules: 'cjs',
36-
targets: NODE_LTS
36+
targets: NODE_LTS,
37+
useBuiltIns: 'usage',
38+
corejs: '3.27',
39+
shippedProposals: true
3740
}
3841
],
3942
['@babel/preset-typescript', { allowDeclareFields: true }]

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"test:update": "npm test:all -- --updateSnapshot"
6565
},
6666
"dependencies": {
67+
"core-js": "^3.27.2",
6768
"debug": "^4.3.4",
6869
"lodash.mergewith": "^4.6.2",
6970
"prettier": "^2.8.3",

0 commit comments

Comments
 (0)
Please sign in to comment.