Skip to content

Commit

Permalink
added ExportAllDeclaration, fixed fn signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hargrove committed Jan 4, 2019
1 parent 41b6887 commit 2a04dee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/dependencies/HarmonyDetectionParserPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ module.exports = class HarmonyDetectionParserPlugin {
const isStrictHarmony = parser.state.module.type === "javascript/esm";
const isHarmony =
isStrictHarmony ||
ast.body.some(statement => statement =>
statement.type === "ImportDeclaration" ||
statement.type === "ExportDefaultDeclaration" ||
statement.type === "ExportNamedDeclaration"
ast.body.some(
statement =>
statement.type === "ImportDeclaration" ||
statement.type === "ExportDefaultDeclaration" ||
statement.type === "ExportNamedDeclaration" ||
statement.type === "ExportAllDeclaration"
);
if (isHarmony) {
const module = parser.state.module;
Expand Down

0 comments on commit 2a04dee

Please sign in to comment.