浏览代码

Removed default parameters transpiler as is no longer needed in node.js v6.

Szymon Kupś 9 年之前
父节点
当前提交
174e8bb5ca
共有 2 个文件被更改,包括 1 次插入9 次删除
  1. 1 8
      dev/tasks/build/utils.js
  2. 0 1
      package.json

+ 1 - 8
dev/tasks/build/utils.js

@@ -208,7 +208,7 @@ const utils = {
 			throw new Error( `Incorrect format: ${ format }` );
 		}
 
-		const plugins = [
+		return [
 			// Note: When plugin is specified by its name, Babel loads it from a context of a
 			// currently transpiled file (in our case - e.g. from ckeditor5-core/src/foo.js).
 			// Obviously that fails, since we have all the plugins installed only in ckeditor5/
@@ -218,13 +218,6 @@ const utils = {
 			// but it works... so let's hope it will.
 			require( `babel-plugin-transform-es2015-modules-${ babelModuleTranspiler }` )
 		];
-
-		// Add additional plugins for Node.js environment.
-		if ( format == 'cjs' ) {
-			plugins.push( require( 'babel-plugin-transform-es2015-parameters' ) );
-		}
-
-		return plugins;
 	},
 
 	/**

+ 0 - 1
package.json

@@ -23,7 +23,6 @@
     "babel-core": "^6.4.0",
     "babel-plugin-transform-es2015-modules-amd": "^6.1.18",
     "babel-plugin-transform-es2015-modules-commonjs": "^6.2.0",
-    "babel-plugin-transform-es2015-parameters": "^6.5.0",
     "benderjs": "^0.4.1",
     "benderjs-chai": "^0.2.0",
     "benderjs-coverage": "^0.2.1",