fix incorrect strict module formatter variable - fixes #706
This commit is contained in:
@@ -4,7 +4,7 @@ var util = require("../../util");
|
||||
|
||||
module.exports = function (Parent) {
|
||||
var Constructor = function () {
|
||||
this.noInteropRequire = true;
|
||||
this.noInteropRequireExport = true;
|
||||
Parent.apply(this, arguments);
|
||||
};
|
||||
|
||||
|
||||
1
test/fixtures/transformation/es6-modules-common-standard/export-1/actual.js
vendored
Normal file
1
test/fixtures/transformation/es6-modules-common-standard/export-1/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default foo;
|
||||
3
test/fixtures/transformation/es6-modules-common-standard/export-1/expected.js
vendored
Normal file
3
test/fixtures/transformation/es6-modules-common-standard/export-1/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
exports["default"] = foo;
|
||||
1
test/fixtures/transformation/es6-modules-common-standard/export-2/actual.js
vendored
Normal file
1
test/fixtures/transformation/es6-modules-common-standard/export-2/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { foo as default };
|
||||
3
test/fixtures/transformation/es6-modules-common-standard/export-2/expected.js
vendored
Normal file
3
test/fixtures/transformation/es6-modules-common-standard/export-2/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
exports["default"] = foo;
|
||||
@@ -1,3 +1 @@
|
||||
export function foo() {}
|
||||
export default foo;
|
||||
export { foo as default, foo };
|
||||
|
||||
@@ -2,6 +2,3 @@
|
||||
|
||||
exports.foo = foo;
|
||||
function foo() {}
|
||||
exports["default"] = foo;
|
||||
exports["default"] = foo;
|
||||
exports.foo = foo;
|
||||
|
||||
Reference in New Issue
Block a user