Skip to content

Commit

Permalink
Tidy Babel configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Dec 6, 2019
1 parent d36cbbc commit 315b68e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -5,6 +5,7 @@
### Patch

- Updated dependencies.
- Tidied Babel configs.
- Readme “Apollo comparison” section corrections and tweaks.

## 9.1.0
Expand Down
4 changes: 2 additions & 2 deletions src/server/.babelrc.js
Expand Up @@ -4,8 +4,8 @@ module.exports = {
[
'@babel/env',
{
targets: 'node >= 8.10',
modules: process.env.BABEL_ESM ? false : 'commonjs',
targets: 'Node >= 8.10',
modules: process.env.BABEL_ESM ? false : 'cjs',
shippedProposals: true,
loose: true
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/.babelrc.js
Expand Up @@ -5,7 +5,7 @@ module.exports = {
'@babel/env',
{
targets: { node: true },
modules: process.env.BABEL_ESM ? false : 'commonjs',
modules: process.env.BABEL_ESM ? false : 'cjs',
shippedProposals: true,
loose: true
}
Expand Down
4 changes: 2 additions & 2 deletions src/universal/.babelrc.js
@@ -1,12 +1,12 @@
module.exports = {
comments: false,
presets: [
{ plugins: ['babel-plugin-transform-replace-object-assign'] },
{ plugins: ['transform-replace-object-assign'] },
[
'@babel/env',
{
targets: 'Node >= 8.10, > 0.5%, not OperaMini all, not dead',
modules: process.env.BABEL_ESM ? false : 'commonjs',
modules: process.env.BABEL_ESM ? false : 'cjs',
shippedProposals: true,
loose: true
}
Expand Down

0 comments on commit 315b68e

Please sign in to comment.