Skip to content

Commit 2a04dee

Browse files
author
Steven Hargrove
committed
added ExportAllDeclaration, fixed fn signature
1 parent 41b6887 commit 2a04dee

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/dependencies/HarmonyDetectionParserPlugin.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ module.exports = class HarmonyDetectionParserPlugin {
1313
const isStrictHarmony = parser.state.module.type === "javascript/esm";
1414
const isHarmony =
1515
isStrictHarmony ||
16-
ast.body.some(statement => statement =>
17-
statement.type === "ImportDeclaration" ||
18-
statement.type === "ExportDefaultDeclaration" ||
19-
statement.type === "ExportNamedDeclaration"
16+
ast.body.some(
17+
statement =>
18+
statement.type === "ImportDeclaration" ||
19+
statement.type === "ExportDefaultDeclaration" ||
20+
statement.type === "ExportNamedDeclaration" ||
21+
statement.type === "ExportAllDeclaration"
2022
);
2123
if (isHarmony) {
2224
const module = parser.state.module;

0 commit comments

Comments
 (0)