Skip to content

Commit

Permalink
fix(transform): fix detection of export/import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Oct 20, 2023
1 parent 4906ba0 commit 45eb16f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function loadLinariaOptions(
}

// If a file contains `export` or `import` keywords, we assume it's an ES-module
return /(?:^|\*\/|;)\s*(?:export|import)\s/m.test(code);
return /(?:^|\*\/|;|})\s*(?:export|import)\s/m.test(code);
},
action: shaker,
},
Expand Down

0 comments on commit 45eb16f

Please sign in to comment.