Skip to content

Commit 5fc534e

Browse files
author
Lenny Burdette
committed
chore: update from babel5 to babel6
Upgrading to babel6 allows us to use the babel-plugin-debug-macros plugin in a future change. Prep work for ember-cli#114
1 parent 094e20b commit 5fc534e

File tree

3 files changed

+200
-19
lines changed

3 files changed

+200
-19
lines changed

build.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
var babel = require('babel-core');
44
var transform = babel.transform;
55
var fs = require('fs');
6-
var stripHeimdall = require('babel5-plugin-strip-heimdall');
6+
var stripHeimdall = require('babel6-plugin-strip-heimdall');
77
var mkdirp = require('mkdirp').sync;
88

99
mkdirp('./dist/loader');
1010
var source = fs.readFileSync('./lib/loader/loader.js', 'utf8');
1111
var instrumented = transform(source, {
12-
whitelist: ['es6.destructuring']
12+
plugins: ['transform-es2015-destructuring']
1313
}).code;
1414

1515
var stripped = transform(source, {
16-
plugins: [stripHeimdall],
17-
whitelist: ['es6.destructuring']
16+
plugins: [
17+
'transform-es2015-destructuring',
18+
stripHeimdall
19+
],
1820
}).code;
1921

2022
fs.writeFileSync('./dist/loader/loader.instrument.js', instrumented);

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
"dependencies": {},
1010
"devDependencies": {
1111
"ara": "0.0.3",
12-
"babel-core": "^5.0.0",
13-
"babel5-plugin-strip-heimdall": "^5.0.2",
12+
"babel-core": "^6.25.0",
13+
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
14+
"babel6-plugin-strip-heimdall": "^6.0.1",
1415
"heimdalljs": "^0.3.2",
1516
"jscs": "^2.11.0",
1617
"jshint": "^2.9.2",

0 commit comments

Comments
 (0)