Skip to content

Commit

Permalink
build: update config for Babel v7
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Aug 29, 2018
1 parent e2fb5af commit 1309dd1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/babel/build.json
@@ -1,7 +1,7 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"targets": {
"node": "8.11"
Expand Down
6 changes: 4 additions & 2 deletions config/babel/test.json
@@ -1,8 +1,10 @@
{
"only": "//test//",
"only": [
"./test"
],
"presets": [
[
"env",
"@babel/preset-env",
{
"targets": {
"node": "8.11"
Expand Down
2 changes: 1 addition & 1 deletion config/grunt/mochaTest.js
@@ -1,5 +1,5 @@
const babelOptions = require('../babel/test.json');
const babelRegister = require('babel-register');
const babelRegister = require('@babel/register');
const chai = require('chai');
const fs = require('fs');
const sinonChai = require('sinon-chai');
Expand Down
8 changes: 3 additions & 5 deletions config/rollup/bundle.js
Expand Up @@ -11,16 +11,14 @@ export default {
babel({
exclude: 'node_modules/**',
plugins: [
'external-helpers',
'@babel/plugin-external-helpers',
[
'transform-runtime', {
polyfill: false
}
'@babel/plugin-transform-runtime'
]
],
presets: [
[
'es2015',
'@babel/preset-env',
{
modules: false
}
Expand Down

0 comments on commit 1309dd1

Please sign in to comment.