Skip to content

Commit af88239

Browse files
authored
(fix) options could be undefined (#942)
1 parent d2a520c commit af88239

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte2tsx/src/svelte2tsx

1 file changed

+1
-1
lines changed

packages/svelte2tsx/src/svelte2tsx/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function processSvelteTemplate(
288288
};
289289

290290
convertHtmlxToJsx(str, htmlxAst, onHtmlxWalk, onHtmlxLeave, {
291-
preserveAttributeCase: options.namespace == 'foreign'
291+
preserveAttributeCase: options?.namespace == 'foreign'
292292
});
293293

294294
// resolve scripts

0 commit comments

Comments
 (0)