Skip to content

Commit a23a028

Browse files
authored
fix: allow inline dynamic imports (sveltejs#1136)
1 parent caac675 commit a23a028

File tree

1 file changed

+2
-4
lines changed
  • packages/repl/src/lib/workers/bundler

1 file changed

+2
-4
lines changed

packages/repl/src/lib/workers/bundler/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,6 @@ async function get_bundle(
521521
'process.env.NODE_ENV': JSON.stringify('production')
522522
})
523523
],
524-
output: {
525-
inlineDynamicImports: true
526-
},
527524
onwarn(warning) {
528525
all_warnings.push({
529526
message: warning.message
@@ -630,7 +627,8 @@ async function bundle({
630627
const client_result = (
631628
await client.bundle?.generate({
632629
format: 'iife',
633-
exports: 'named'
630+
exports: 'named',
631+
inlineDynamicImports: true
634632
// sourcemap: 'inline'
635633
})
636634
)?.output[0];

0 commit comments

Comments
 (0)