You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/repl/src/lib/workers/bundler/plugins/commonjs.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ const plugin: Plugin = {
27
27
});
28
28
29
29
constrequires: string[]=[];
30
-
constexports: string[]=[];
30
+
constexports: Set<string>=newSet();
31
31
32
32
walk(astasNode,null,{
33
33
CallExpression: (node,context)=>{
@@ -52,9 +52,7 @@ const plugin: Plugin = {
52
52
53
53
// Default is a special case (and would result in invalid syntax) and kinda fucked up: https://github.com/evanw/esbuild/issues/1719#issuecomment-953470495
0 commit comments