Bjorn Lu
Bjorn Lu
Duplicate of #61
ESM is supported in this package, but webpack hasn't adopted it yet. So you can only use CJS loaders for now.
> Related, though I didn't want to add it to this PR, why is this being awaited in the first place? It's likely to prevent FOUC if the preload links...
@Dreamacro a workaround is to move the common config out from a workspace package so it doesn't have it's own `node_modules`. For example, moving the file to `/scripts/common-config.js`, and import...
> Is it safe to say that configuring production mode is only possible with `vite build`? I propose the current behaviour should be documented so it's clearer _how_ to use...
I'll close this for now as it's working as intended.
FWIW @dominikg [had implemented this](https://github.com/sveltejs/vite-plugin-svelte/pull/101) for vite-plugin-svelte a while ago. It's under the experimental options though and I've never heard anyone using it. But if it works, the code could...
Vite-specific, but maybe you can use [`useViteProprocess`](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#usevitepreprocess) to have the SCSS pass through Vite's CSS pipeline
TypeScript is not supported in template as noted at https://github.com/sveltejs/svelte-preprocess/blob/main/docs/preprocessing.md#typescript---limitations
Yes you're right. SvelteKit utility functions can't be used for packaging as your library can be used for non-SvelteKit projects too. The utilities also requires to be directly imported (instead...