Skip to content

Commit

Permalink
SK-1104 update babel config for corejs build.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaswanth-pula-skyflow committed Sep 28, 2023
1 parent f160333 commit 0eae0b4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (api) {
'@babel/preset-env',
{
corejs: { version: 3 },
useBuiltIns: 'usage',
useBuiltIns: 'entry',
targets: {
edge: '17',
firefox: '60',
Expand Down
3 changes: 1 addition & 2 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ const minify = {

module.exports = () => merge(common, {
entry: {
skyflow: ['core-js/stable', path.resolve(__dirname, 'src/index.ts')],
skyflow: [ path.resolve(__dirname, 'src/index.ts')],
iframe: [
'core-js/stable',
path.resolve(__dirname, 'src/index-internal.ts'),
],
},
Expand Down
1 change: 0 additions & 1 deletion webpack.iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = () => merge(common, {

entry: {
index: [
'core-js/stable',
path.resolve(__dirname, 'src/index-internal.ts'),
],
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.skyflow-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = () => merge(common, {
mode: 'production',

entry: {
index: ['core-js/stable', path.resolve(__dirname, 'src/index.ts')],
index: [ path.resolve(__dirname, 'src/index.ts')],
},

output: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.skyflow-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const common = require('./webpack.common.js');
module.exports = () => merge(common, {
mode: 'production',
entry: {
index: ['core-js/stable', path.resolve(__dirname, 'src/index-node.ts')],
index: [ path.resolve(__dirname, 'src/index-node.ts')],
},
output: {
filename: '[name].js',
Expand Down

0 comments on commit 0eae0b4

Please sign in to comment.