feat: add noIncompleteNsImportDetection assumption to plugin-transform-modules-commonjs (#13290)

This commit is contained in:
Federico Ciardi
2021-08-03 23:55:09 +02:00
committed by GitHub
parent c35637e247
commit 7e50ee2d82
12 changed files with 64 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _default = foo;
exports.default = _default;

View File

@@ -0,0 +1,7 @@
{
"assumptions": {
"noIncompleteNsImportDetection": true,
"constantReexports": true
},
"plugins": ["transform-modules-commonjs"]
}

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _foo = require("foo");
exports.foo = _foo.foo;

View File

@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var foo = 2;
exports.foo = foo;

View File

@@ -0,0 +1,6 @@
{
"assumptions": {
"noIncompleteNsImportDetection": true
},
"plugins": ["transform-modules-commonjs"]
}