Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Move to es2016-node5
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Aug 12, 2016
1 parent 6c85bbf commit 0a8f181
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
@@ -1,4 +1,5 @@
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"rules": {
"strict": 0,
Expand All @@ -16,6 +17,5 @@
"es6": true,
"node": true,
"browser": true
},
"extends": "eslint:recommended"
}
}
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -88,7 +88,7 @@ If you've got a `.babelrc` and that's all you want to customize, you can simply
```js
{
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
},
"text/less": {
Expand All @@ -104,7 +104,7 @@ If you've got a `.babelrc` and that's all you want to customize, you can simply
"env": {
"development": {
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
},
"text/less": {
Expand All @@ -113,7 +113,7 @@ If you've got a `.babelrc` and that's all you want to customize, you can simply
},
"production": {
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "none"
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"babel-eslint": "^6.1.2",
"babel-plugin-array-includes": "^2.0.3",
"babel-plugin-transform-async-to-generator": "^6.8.0",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-plugin-transform-async-to-generator": "^6.12.0",
"babel-preset-es2016-node5": "^1.1.2",
"babel-preset-react": "^6.11.1",
"babel-register": "^6.11.6",
Expand Down
2 changes: 1 addition & 1 deletion src/config-parser.js
Expand Up @@ -340,7 +340,7 @@ export function calculateDefaultCompileCacheDirectory() {
export function getDefaultConfiguration() {
return {
'application/javascript': {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
}
};
Expand Down
8 changes: 4 additions & 4 deletions test/compiler-host.js
Expand Up @@ -40,14 +40,14 @@ describe('The compiler host', function() {
let InlineHtmlCompiler = Object.getPrototypeOf(this.compilersByMimeType['text/html']).constructor;
this.compilersByMimeType['text/html'] = InlineHtmlCompiler.createFromCompilers(this.compilersByMimeType);
this.compilersByMimeType['application/javascript'].compilerOptions = {
"presets": ["react", "stage-0", "es2015"],
"plugins": ["transform-runtime"],
"presets": ["react", "es2016-node5"],
"plugins": ["transform-async-to-generator"],
"sourceMaps": "inline"
};

this.compilersByMimeType['text/jsx'].compilerOptions = {
"presets": ["react", "stage-0", "es2015"],
"plugins": ["transform-runtime"],
"presets": ["react", "es2016-node5"],
"plugins": ["transform-async-to-generator"],
"sourceMaps": "inline"
};

Expand Down
8 changes: 4 additions & 4 deletions test/compiler-valid-invalid.js
Expand Up @@ -35,14 +35,14 @@ const mimeTypesWithoutSourceMapSupport = [

const compilerOptionsForMimeType = {
'application/javascript': {
"presets": ["stage-0", "es2015"],
"plugins": ["transform-runtime"],
"presets": ["es2016-node5"],
"plugins": ["transform-async-to-generator"],
"sourceMaps": "inline"
},

'text/jsx': {
"presets": ["react", "stage-0", "es2015"],
"plugins": ["transform-runtime"],
"presets": ["es2016-node5", "react"],
"plugins": ["transform-async-to-generator"],
"sourceMaps": "inline"
},

Expand Down
2 changes: 1 addition & 1 deletion test/config-parser.js
Expand Up @@ -49,7 +49,7 @@ describe('the configuration parser module', function() {
rootCacheDir: this.tempCacheDir,
options: {
'application/javascript': {
"presets": ["stage-0", "es2015"],
"presets": ["es2016-node5"],
"sourceMaps": false
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/electron-app/.compilerc
@@ -1,5 +1,5 @@
{
"application/javascript": {
"presets": ["stage-0", "es2015"]
"presets": ["es2016-node5"]
}
}
2 changes: 1 addition & 1 deletion test/fixtures/babelrc-noenv
@@ -1,4 +1,4 @@
{
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
}
4 changes: 2 additions & 2 deletions test/fixtures/babelrc-production
@@ -1,11 +1,11 @@
{
"env": {
"production": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": false
},
"development": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/compilerc-noenv
@@ -1,6 +1,6 @@
{
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
}
}
4 changes: 2 additions & 2 deletions test/fixtures/compilerc-production
Expand Up @@ -2,13 +2,13 @@
"env": {
"production": {
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": false
}
},
"development": {
"application/javascript": {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/inline-html-compiler.js
Expand Up @@ -26,7 +26,7 @@ describe('The inline HTML compiler', function() {
}, {});

compilers['application/javascript'].compilerOptions = {
"presets": ["stage-0", "es2015", "react"],
"presets": ["es2016-node5", "react"],
"sourceMaps": "inline"
};

Expand Down

0 comments on commit 0a8f181

Please sign in to comment.