Make babel-runtime use regenerator-runtime from npm. (#3494)
The source repository for regenerator-runtime can now be found at
https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime
This also removes the babel-regenerator-runtime package, now that the only
difference between it and regenerator-runtime has been resolved:
bc8d2d672c
This commit is contained in:
@@ -12,6 +12,6 @@
|
||||
"babel-helpers": "^6.6.0",
|
||||
"babel-plugin-transform-runtime": "^6.9.0",
|
||||
"babel-template": "^6.9.0",
|
||||
"babel-regenerator-runtime": "^6.3.13"
|
||||
"regenerator-runtime": "^0.9.5"
|
||||
}
|
||||
}
|
||||
|
||||
1
packages/babel-runtime/regenerator/index.js
Normal file
1
packages/babel-runtime/regenerator/index.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require("regenerator-runtime");
|
||||
@@ -128,6 +128,3 @@ each(helpers.list, function (helperName) {
|
||||
writeFile("helpers/_" + helperAlias + ".js", content);
|
||||
if (helperAlias !== helperName) writeFile("helpers/" + helperAlias + ".js", content);
|
||||
});
|
||||
|
||||
writeFile("regenerator/index.js", readFile("../../babel-regenerator-runtime/runtime-module", true));
|
||||
writeFile("regenerator/runtime.js", selfContainify("..", readFile("../../babel-regenerator-runtime/runtime")));
|
||||
|
||||
Reference in New Issue
Block a user