-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4862 from emberjs/babel-6
Babel 6
- Loading branch information
Showing
10 changed files
with
974 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ var merge = require('broccoli-merge-trees'); | |
var Funnel = require('broccoli-funnel'); | ||
var globals = require('./lib/globals'); | ||
var yuidoc = require('./lib/yuidoc'); | ||
var stripClassCallCheck = require('babel5-plugin-strip-class-callcheck'); | ||
var StripClassCallCheck = require('babel6-plugin-strip-class-callcheck'); | ||
var path = require('path'); | ||
|
||
// allow toggling of heimdall instrumentation | ||
|
@@ -20,10 +20,11 @@ for (var i = 0; i < args.length; i++) { | |
|
||
module.exports = function(defaults) { | ||
var app = new EmberAddon(defaults, { | ||
babel: { | ||
plugins: [ | ||
// use babel6 options until we are using [email protected] | ||
babel6: { | ||
postTransformPlugins: [ | ||
// while ember-data strips itself, ember does not currently | ||
{ transformer: stripClassCallCheck, position: 'after' } | ||
[StripClassCallCheck] | ||
] | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* global module */ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
}, | ||
|
||
env: { | ||
node: true, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.