diff --git a/compilers/es6.js b/compilers/es6.js index 3e17cd8..ff42b94 100644 --- a/compilers/es6.js +++ b/compilers/es6.js @@ -35,7 +35,7 @@ exports.compile = function(load, opts, loader) { var source = load.source; - if (loader.parser == '6to5') { + if (loader.transpiler == '6to5') { options = loader.to5Options || {}; options.modules = 'system'; if (opts.sourceMaps) @@ -87,7 +87,7 @@ exports.compile = function(load, opts, loader) { tree = transformer.transformAny(tree); - if (loader.parser == 'traceur') + if (loader.transpiler == 'traceur') tree = compiler.transform(tree, load.name); var source = compiler.write(tree, load.address); diff --git a/package.json b/package.json index 8677877..81b4e5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "systemjs-builder", - "version": "0.6.0", + "version": "0.7.0", "description": "SystemJS Build Tool ===", "main": "index.js", "directories": { @@ -10,13 +10,13 @@ "mkdirp": "^0.5.0", "rsvp": "^3.0.16", "source-map": "~0.2.0", - "systemjs": "^0.12.1", + "systemjs": "^0.13.0", "traceur": "0.0.82", - "6to5": "^3.1.1", + "6to5": "~3.3.2", "uglify-js": "^2.4.15" }, "devDependencies": { - "es6-module-loader": "0.12.0", + "es6-module-loader": "0.13.0", "react-tools": "^0.12.1" }, "repository": { diff --git a/test/run-build.js b/test/run-build.js index a6b95fb..bfb6c15 100644 --- a/test/run-build.js +++ b/test/run-build.js @@ -12,7 +12,7 @@ builder.loadConfig('./cfg.js') .then(function() { if (process.argv[2] == '6to5') - builder.loader.parser = '6to5'; + builder.loader.transpiler = '6to5'; builder.build('tree/first', 'tree-build.js', { sourceMaps: true }) .then(function() {