rename runtimeES3 transformer to es3.runtime

This commit is contained in:
Sebastian McKenzie 2015-03-31 02:34:32 +11:00
parent 153e81261c
commit 6bc2bfce7d
8 changed files with 8 additions and 7 deletions

View File

@ -40,7 +40,7 @@ function writeRootFile(filename, content) {
} }
function doVersion(version) { function doVersion(version) {
var transformer = "runtime" + version.toUpperCase(); var transformer = version + ".runtime";
function writeFile(filename, content) { function writeFile(filename, content) {
return writeRootFile(version + "/" + filename, content); return writeRootFile(version + "/" + filename, content);

View File

@ -1,4 +1,5 @@
{ {
"useStrict": "strict", "useStrict": "strict",
"runtimeES5": "runtime" "es5.runtime": "runtime",
"es6.runtime": "runtime"
} }

View File

@ -83,7 +83,7 @@ export default {
// needs to be after `regenerator` due to needing `regeneratorRuntime` references // needs to be after `regenerator` due to needing `regeneratorRuntime` references
// needs to be after `es6.forOf` due to needing `Symbol.iterator` references // needs to be after `es6.forOf` due to needing `Symbol.iterator` references
// needs to be before `es6.modules` due to dynamic imports // needs to be before `es6.modules` due to dynamic imports
runtimeES3: require("./other/runtime-es3"), "es3.runtime": require("./es3/runtime"),
runtime: require("./other/runtime"), runtime: require("./other/runtime"),
// needs to be before `_blockHoist` due to function hoisting etc // needs to be before `_blockHoist` due to function hoisting etc

View File

@ -0,0 +1,4 @@
{
"optional": ["es3.runtime"],
"stage": 0
}

View File

@ -1,4 +0,0 @@
{
"optional": ["runtimeES3"],
"stage": 0
}