We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b73851 commit 923674dCopy full SHA for 923674d
packages/repl/src/lib/workers/bundler/index.ts
@@ -299,13 +299,18 @@ async function get_bundle(
299
let result: CompileResult;
300
301
if (id.endsWith('.svelte')) {
302
+ const is_gt_5 = Number(svelte.VERSION.split('.')[0]) >= 5;
303
+
304
const compilerOptions: any = {
305
filename: name + '.svelte',
- generate: Number(svelte.VERSION.split('.')[0]) >= 5 ? 'client' : 'dom',
- dev: true,
306
- runes: options.runes
+ generate: is_gt_5 ? 'client' : 'dom',
307
+ dev: true
308
};
309
310
+ if (is_gt_5) {
311
+ compilerOptions.runes = options.runes;
312
+ }
313
314
if (can_use_experimental_async) {
315
compilerOptions.experimental = { async: true };
316
}
0 commit comments