The main purpose of creating a svelte loader is to enable unit testing of svelte components with node test-runner.
I propose to use svelte/compiler so that mean the loader will handle a specific version of svelte.
Also my issue is do we need to use compile or compileModule ?
Compiler doc
The main purpose of creating a
svelte
loader is to enable unit testing of svelte components with node test-runner.I propose to use
svelte/compiler
so that mean the loader will handle a specific version of svelte. Also my issue is do we need to usecompile
orcompileModule
? Compiler doc