feat: add noIncompleteNsImportDetection assumption to plugin-transform-modules-commonjs (#13290)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export default foo;
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _default = foo;
|
||||
exports.default = _default;
|
||||
@@ -0,0 +1 @@
|
||||
export { foo } from "foo";
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"assumptions": {
|
||||
"noIncompleteNsImportDetection": true,
|
||||
"constantReexports": true
|
||||
},
|
||||
"plugins": ["transform-modules-commonjs"]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _foo = require("foo");
|
||||
|
||||
exports.foo = _foo.foo;
|
||||
@@ -0,0 +1 @@
|
||||
export var foo = 2;
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var foo = 2;
|
||||
exports.foo = foo;
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"assumptions": {
|
||||
"noIncompleteNsImportDetection": true
|
||||
},
|
||||
"plugins": ["transform-modules-commonjs"]
|
||||
}
|
||||
Reference in New Issue
Block a user