Skip to content

Commit c3a8deb

Browse files
committed
added babel runtime as dep
1 parent 037c3bb commit c3a8deb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"yargs": "~3.7.2"
6161
},
6262
"dependencies": {
63+
"babel-runtime": "~5.1.11",
6364
"react-async-script": "~0.3.1"
6465
}
6566
}

register-babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
require("babel/register")({
22
ignore: /node_modules/,
3-
optional: ["es7.objectRestSpread"],
3+
optional: ["es7.objectRestSpread", "runtime"],
44
});

tools/lib/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export default function BuildCommonJs() {
1010
console.log("Building: ".cyan + "npm module".green);
1111

1212
return exec(`rm -rf ${lib}`)
13-
.then(() => exec(`./node_modules/.bin/babel --optional es7.objectRestSpread ${src} --out-dir ${lib}`))
13+
.then(() => exec(`./node_modules/.bin/babel --optional es7.objectRestSpread,runtime ${src} --out-dir ${lib}`))
1414
.then(() => console.log("Built: ".cyan + "npm module".green));
1515
}

webpack/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default (options) => {
4444

4545
module: {
4646
loaders: [
47-
{ test: /\.js/, loader: "babel?optional=es7.objectRestSpread", exclude: /node_modules/ }
47+
{ test: /\.js/, loader: "babel?optional[]=es7.objectRestSpread&optional[]=runtime", exclude: /node_modules/ }
4848
]
4949
},
5050

0 commit comments

Comments
 (0)