Skip to content

Commit

Permalink
Merge branch 'next' into colorpalette_transparency_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-krakowski committed Jul 5, 2021
2 parents af6136c + 4bd2fc9 commit 16442f0
Show file tree
Hide file tree
Showing 1,686 changed files with 87,000 additions and 55,546 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 16442f0

Please sign in to comment.