feat: add noIncompleteNsImportDetection assumption to plugin-transform-modules-commonjs (#13290)
This commit is contained in:
@@ -40,6 +40,8 @@ export default declare((api, options) => {
|
||||
api.assumption("constantReexports") ?? options.loose;
|
||||
const enumerableModuleMeta =
|
||||
api.assumption("enumerableModuleMeta") ?? options.loose;
|
||||
const noIncompleteNsImportDetection =
|
||||
api.assumption("noIncompleteNsImportDetection") ?? false;
|
||||
|
||||
if (
|
||||
typeof lazy !== "boolean" &&
|
||||
@@ -186,6 +188,7 @@ export default declare((api, options) => {
|
||||
/\.mjs$/.test(state.filename)
|
||||
? mjsStrictNamespace
|
||||
: strictNamespace,
|
||||
noIncompleteNsImportDetection,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user