add optional jscript transformer for basic IE8 compatibility (fixes #1369)

This commit is contained in:
Pusztai Tibor
2015-04-29 12:29:45 +02:00
parent b7971690f3
commit 881fa6430b
8 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{
"optional": ["jscript"]
}

View File

@@ -0,0 +1,2 @@
class Test {
}

View File

@@ -0,0 +1,9 @@
"use strict";
var Test = (function () {
function Test() {
babelHelpers.classCallCheck(this, Test);
}
return Test;
})();

View File

@@ -0,0 +1,3 @@
{
"externalHelpers": true
}

View File

@@ -0,0 +1,7 @@
var IdenticalName = function IdenticalName(x) {
return x;
};
var DifferentNameA = function DifferentNameB(x) {
return x;
};

View File

@@ -0,0 +1,13 @@
"use strict";
var IdenticalName = (function () {
function IdenticalName(x) {
return x;
}
return IdenticalName;
})();
var DifferentNameA = function DifferentNameB(x) {
return x;
};