Skip to content

Commit 8fedf4d

Browse files
authored
add tsconfigFile to the preprocessor
Upgrading svelte-preprocess from 4.6.9 to 4.7.0 broke rollup build with the following error: [!] (plugin svelte) TypeError: The "path" argument must be of type string. Received undefined Little problem with finding the TS config file.
1 parent b28cb50 commit 8fedf4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rollup.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export default {
4141
},
4242
plugins: [
4343
svelte({
44-
preprocess: sveltePreprocess(),
44+
preprocess: sveltePreprocess({
45+
typescript: {
46+
tsconfigFile: production ? "./tsconfig.svelte.prod.json" : "./tsconfig.svelte.json",
47+
}
48+
}),
4549
compilerOptions: {
4650
// enable run-time checks when not in production
4751
dev: !production,

0 commit comments

Comments
 (0)