Skip to content

Commit 44a2ef5

Browse files
committed
fix: check if it exists before using
1 parent 4f15d68 commit 44a2ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite-plugin-svelte/src/plugins/compile-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function compileModule(api) {
6767
}
6868
: compileOptions;
6969
// @ts-expect-error experimental not typed yet
70-
if (dynamicCompileOptions.experimental) {
70+
if (dynamicCompileOptions?.experimental) {
7171
// @ts-expect-error experimental not typed yet
7272
finalCompileOptions.experimental = {
7373
// @ts-expect-error experimental not typed yet

0 commit comments

Comments
 (0)