Skip to content

Commit

Permalink
Make TS happy with sveltePreprocess options
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed Jul 25, 2024
1 parent 472d21b commit 019d6aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/utils/runJS.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,12 @@ describe('Ecosystem interoperability', () => {
plugins: [
sveltePlugin({
preprocess: sveltePreprocess({
// Does not work with module set to nodenext, works with either commonjs or esnext
typescript: { compilerOptions: { module: 'commonjs' } },
typescript: {
compilerOptions: {
module: 'preserve',
moduleResolution: 'bundler',
},
},
}),
}),
],
Expand Down

0 comments on commit 019d6aa

Please sign in to comment.