@bolt/babel-preset-bolt
Advanced tools
@@ -6,10 +6,13 @@ # Change Log | ||
# [2.23.0-canary.12672.5.0](https://github.com/bolt-design-system/bolt/tree/master/packages/configs/babel-preset-bolt/compare/v2.22.1...v2.23.0-canary.12672.5.0) (2020-05-06) | ||
# [3.0.0](https://github.com/bolt-design-system/bolt/tree/master/packages/configs/babel-preset-bolt/compare/v2.29.3...v3.0.0) (2021-01-08) | ||
**Note:** Version bump only for package @bolt/babel-preset-bolt | ||
### Features | ||
* drop ie11 from browserslist, export single config from babel-preset ([a0dc9b6](https://github.com/bolt-design-system/bolt/tree/master/packages/configs/babel-preset-bolt/commit/a0dc9b64c899285300a592014cb9fdb7e2408a62)) | ||
# [2.19.0](https://github.com/bolt-design-system/bolt/tree/master/packages/configs/babel-preset-bolt/compare/v2.18.1...v2.19.0) (2020-03-04) | ||
@@ -16,0 +19,0 @@ |
112
index.js
@@ -1,85 +0,37 @@ | ||
const legacyBabelConfig = function(api, opts = {}) { | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
ignoreBrowserslistConfig: true, | ||
modules: false, | ||
debug: false, | ||
corejs: 3, | ||
useBuiltIns: 'entry', | ||
targets: { | ||
browsers: require('@bolt/browserslist-config/all.js'), | ||
}, | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
ignoreBrowserslistConfig: true, | ||
modules: false, | ||
debug: false, | ||
corejs: 3, | ||
useBuiltIns: 'entry', | ||
targets: { | ||
browsers: require('@bolt/browserslist-config'), | ||
}, | ||
], | ||
}, | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-optional-chaining', | ||
[ | ||
'@babel/plugin-proposal-decorators', | ||
{ | ||
decoratorsBeforeExport: true, | ||
}, | ||
], | ||
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
'@babel/plugin-syntax-dynamic-import', | ||
'@babel/plugin-syntax-jsx' /* [1] */, | ||
[ | ||
'@babel/plugin-transform-react-jsx' /* [1] */, | ||
{ | ||
pragma: 'h', | ||
pragmaFrag: 'Fragment', | ||
throwIfNamespace: false, | ||
useBuiltIns: false, | ||
}, | ||
], | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-optional-chaining', | ||
[ | ||
'@babel/plugin-proposal-decorators', | ||
{ | ||
decoratorsBeforeExport: true, | ||
}, | ||
], | ||
}; | ||
}; | ||
const modernBabelConfig = function(api, opts = {}) { | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
ignoreBrowserslistConfig: true, | ||
modules: false, | ||
debug: false, | ||
corejs: 3, | ||
useBuiltIns: 'entry', | ||
targets: { | ||
browsers: require('@bolt/browserslist-config/modern.js'), | ||
}, | ||
}, | ||
], | ||
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
'@babel/plugin-syntax-jsx', | ||
[ | ||
'@babel/plugin-transform-react-jsx', | ||
{ | ||
pragma: 'h', | ||
pragmaFrag: 'Fragment', | ||
throwIfNamespace: false, | ||
useBuiltIns: false, | ||
}, | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-optional-chaining', | ||
[ | ||
'@babel/plugin-proposal-decorators', | ||
{ | ||
decoratorsBeforeExport: true, | ||
}, | ||
], | ||
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
'@babel/plugin-syntax-jsx' /* [1] */, | ||
[ | ||
'@babel/plugin-transform-react-jsx' /* [1] */, | ||
{ | ||
pragma: 'h', | ||
pragmaFrag: 'Fragment', | ||
throwIfNamespace: false, | ||
useBuiltIns: false, | ||
}, | ||
], | ||
], | ||
}; | ||
], | ||
}; | ||
module.exports = { | ||
legacyBabelConfig, | ||
modernBabelConfig, | ||
}; |
{ | ||
"name": "@bolt/babel-preset-bolt", | ||
"version": "2.23.0-canary.12672.5.0", | ||
"version": "3.0.0", | ||
"description": "Babel preset configuration shared across the Bolt Design System", | ||
@@ -31,11 +31,7 @@ "keywords": [ | ||
"@babel/plugin-proposal-decorators": "^7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.5.4", | ||
"@babel/plugin-proposal-optional-chaining": "^7.7.5", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-jsx": "^7.2.0", | ||
"@babel/plugin-transform-react-jsx": "^7.3.0", | ||
"@babel/plugin-transform-runtime": "^7.5.0", | ||
"@babel/preset-env": "^7.5.4", | ||
"@babel/runtime": "^7.5.4", | ||
"@bolt/browserslist-config": "2.23.0-canary.12672.5.0" | ||
"@bolt/browserslist-config": "^3.0.0" | ||
}, | ||
@@ -45,3 +41,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "60ddae71f161ba2e0c0428e91569a05706f5b057" | ||
"gitHead": "e00a8b60b45cfc2b16135b00689afdd2db351406" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9
-30.77%0
-100%15073
-7.84%37
-55.42%