Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storefront): STRF-8607 Unified browsers list that we support #1836

Merged
merged 1 commit into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>2%, last 2 versions, Firefox ESR
35 changes: 18 additions & 17 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import', // add support for dynamic imports (used in app.js)
'lodash', // Tree-shake lodash
],
presets: [
['@babel/preset-env', {
//debug: true,
loose: true, // Enable "loose" transformations for any plugins in this preset that allow them
modules: 'auto',
useBuiltIns: 'usage', // Tree-shake babel-polyfill
targets: {
node: 'current',
},
}],
],
};
module.exports = api => {
const targets = api.env('test') ? { targets: { node: 'current' } } : null;
return {
plugins: [
'@babel/plugin-syntax-dynamic-import', // add support for dynamic imports (used in app.js)
'lodash', // Tree-shake lodash
],
presets: [
['@babel/preset-env', {
//debug: true,
loose: true, // Enable "loose" transformations for any plugins in this preset that allow them
modules: 'auto',
useBuiltIns: 'usage', // Tree-shake babel-polyfill
...targets,
}],
],
};
}
1 change: 0 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ module.exports = {
loose: true, // Enable "loose" transformations for any plugins in this preset that allow them
modules: false, // Don't transform modules; needed for tree-shaking
useBuiltIns: 'entry',
targets: '> 1%, last 2 versions, Firefox ESR',
corejs: '^3.6.5',
}],
],
Expand Down