Skip to content

Commit

Permalink
fix: slow debug (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 authored Feb 21, 2024
1 parent 9c34b7a commit 04dc12f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ export function createBuildConfiguration(options: CreateBuildConfigOptions) {
const commonConfig = {
target: 'es2020',
bundle: true,
format: 'esm',
/*
using iife here because esm makes debugging very slow to pickup variables in scope.
if one want to change this to esm, make sure that some bundle splitting is happening.
*/
format: 'iife',
publicPath,
metafile: true,
sourcemap: true,
Expand Down

0 comments on commit 04dc12f

Please sign in to comment.