Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Dec 15, 2023
1 parent 3f9bb7b commit 8497675
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/babel-preset-env/src/index.ts
Expand Up @@ -410,9 +410,10 @@ option \`forceAllTransforms: true\` instead.
// other plugin. We can consider adding bundlers as targets in the future,
// but we should not have a one-off special case for this plugin.
if (
optionsModules === "auto" &&
!api.caller(supportsExportNamespaceFrom) &&
!exclude.plugins.has("transform-export-namespace-from")
(optionsModules === "auto" &&
!api.caller(supportsExportNamespaceFrom) &&
!exclude.plugins.has("transform-export-namespace-from")) ||
optionsModules !== "amd"
) {
include.plugins.add("transform-export-namespace-from");
}
Expand Down
@@ -0,0 +1 @@
export * as Extra from "./extra.js"
@@ -0,0 +1,11 @@
{
"presets": [
[
"env",
{
"modules": "commonjs",
"targets": "node 16"
}
]
]
}
@@ -0,0 +1,8 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Extra = void 0;
var _Extra = babelHelpers.interopRequireWildcard(require("./extra.js"));
exports.Extra = _Extra;

0 comments on commit 8497675

Please sign in to comment.