Skip to content

Commit

Permalink
fix: unwrap iife for hermes optimization
Browse files Browse the repository at this point in the history
- in local scope(iife), poor performance on hermes runtime
- remove iife for modules initialize on global scope
  - change esbuild bundle format iife to esm for remove iife

close #5
  • Loading branch information
leegeunhyeok committed Sep 19, 2023
1 parent 2052f55 commit 220233f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/config/lib/transformers/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getEsbuildOptions(
*/
'for-of': false,
},
format: 'iife',
format: 'esm',
bundle: true,
sourcemap: true,
minify,
Expand Down

0 comments on commit 220233f

Please sign in to comment.