Skip to content

Commit

Permalink
Merge branch 'next' into extempl
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Sep 1, 2021
2 parents 7ce4a27 + 34c6483 commit ad93307
Show file tree
Hide file tree
Showing 2,076 changed files with 112,858 additions and 70,624 deletions.
12 changes: 9 additions & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ const withTests = {
],
};

const modules = process.env.BABEL_ESM === 'true' ? false : 'auto';
// type BabelMode = 'cjs' | 'esm' | 'modern';

const modules = process.env.BABEL_MODE === 'cjs' ? 'auto' : false;

// FIXME: optional chaining introduced in chrome 80, not supported by wepback4
// https://github.com/webpack/webpack/issues/10227#issuecomment-642734920
const targets = process.env.BABEL_MODE === 'modern' ? { chrome: '79' } : 'defaults';

module.exports = {
ignore: [
Expand All @@ -26,7 +32,7 @@ module.exports = {
shippedProposals: true,
useBuiltIns: 'usage',
corejs: '3',
targets: 'defaults',
targets,
modules,
},
],
Expand Down Expand Up @@ -70,7 +76,7 @@ module.exports = {
useBuiltIns: 'usage',
corejs: '3',
modules,
targets: 'defaults',
targets,
},
],
'@babel/preset-react',
Expand Down
16 changes: 0 additions & 16 deletions .bettercodehub.yml

This file was deleted.

Loading

0 comments on commit ad93307

Please sign in to comment.