Skip to content

Commit

Permalink
fix: allow inline dynamic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 31, 2025
1 parent e7c091a commit 2079313
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,6 @@ async function get_bundle(
'process.env.NODE_ENV': JSON.stringify('production')
})
],
output: {
inlineDynamicImports: true
},
onwarn(warning) {
all_warnings.push({
message: warning.message
Expand Down Expand Up @@ -630,7 +627,8 @@ async function bundle({
const client_result = (
await client.bundle?.generate({
format: 'iife',
exports: 'named'
exports: 'named',
inlineDynamicImports: true
// sourcemap: 'inline'
})
)?.output[0];
Expand Down

0 comments on commit 2079313

Please sign in to comment.