Commit c6666a2
Fix test story to avoid Vitest transformation issue with inline loader
The loader function needs to be defined separately to prevent Vitest's
wrapDynamicImport from stripping the .then() callback when the loader
is defined inline in dynamic() with ssr: false.
Co-authored-by: valentinpalkovic <[email protected]>1 parent c067304 commit c6666a2
File tree
1 file changed
+3
-4
lines changed- example/src/app/components/DynamicImport
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
0 commit comments