8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b6887 commit 2a04deeCopy full SHA for 2a04dee
lib/dependencies/HarmonyDetectionParserPlugin.js
@@ -13,10 +13,12 @@ module.exports = class HarmonyDetectionParserPlugin {
13
const isStrictHarmony = parser.state.module.type === "javascript/esm";
14
const isHarmony =
15
isStrictHarmony ||
16
- ast.body.some(statement => statement =>
17
- statement.type === "ImportDeclaration" ||
18
- statement.type === "ExportDefaultDeclaration" ||
19
- statement.type === "ExportNamedDeclaration"
+ ast.body.some(
+ statement =>
+ statement.type === "ImportDeclaration" ||
+ statement.type === "ExportDefaultDeclaration" ||
20
+ statement.type === "ExportNamedDeclaration" ||
21
+ statement.type === "ExportAllDeclaration"
22
);
23
if (isHarmony) {
24
const module = parser.state.module;
0 commit comments