add optional jscript transformer for basic IE8 compatibility (fixes #1369)
This commit is contained in:
3
test/core/fixtures/transformation/jscript/options.json
Normal file
3
test/core/fixtures/transformation/jscript/options.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"optional": ["jscript"]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
class Test {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var Test = (function () {
|
||||
function Test() {
|
||||
babelHelpers.classCallCheck(this, Test);
|
||||
}
|
||||
|
||||
return Test;
|
||||
})();
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"externalHelpers": true
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
var IdenticalName = function IdenticalName(x) {
|
||||
return x;
|
||||
};
|
||||
|
||||
var DifferentNameA = function DifferentNameB(x) {
|
||||
return x;
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
var IdenticalName = (function () {
|
||||
function IdenticalName(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
return IdenticalName;
|
||||
})();
|
||||
|
||||
var DifferentNameA = function DifferentNameB(x) {
|
||||
return x;
|
||||
};
|
||||
Reference in New Issue
Block a user