Closed baradhili closed 1 year ago
If you need typescript then the typescript preprocessor should run before the sveltePreprocessReact processor, to do this add the typescript preprocessor as argument:
// svelte.config.js
import preprocess from "svelte-preprocess";
import preprocessReact from "svelte-preprocess-react/preprocessReact";
export default {
preprocess: preprocessReact({
preprocess: preprocess({ sourceMap: true }),
}),
};
Yup that worked! Thanks
adding preprocessReact to the vanilla SvelteKit (1.0.0) app I get
It seems to be trying to preprocess 'n:' ?