Skip to content

Commit

Permalink
chore: ignore type error for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Nov 9, 2023
1 parent a82ea7b commit c3e9874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-plugin-svelte/src/utils/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const _createCompileSvelte = (makeHot) => {
const compileOptions = {
...options.compilerOptions,
filename,
// @ts-expect-error generate type is different for svelte5
generate: isSvelte5 ? (ssr ? 'server' : 'client') : ssr ? 'ssr' : 'dom'
};
if (isSvelte3) {
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin-svelte/src/utils/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ async function compileSvelte(options, { filename, code }, statsCollection) {
...options.compilerOptions,
css,
filename,
// @ts-expect-error generate type is different for svelte5
generate: isSvelte5 ? 'client' : 'dom'
};
if (isSvelte3) {
Expand Down

0 comments on commit c3e9874

Please sign in to comment.