sveltejs / svelte-loader

Webpack loader for svelte components.
MIT License
597 stars 72 forks source link

Document workaround for Svelte errors #141

Closed syvb closed 3 years ago

syvb commented 3 years ago

In Webpack 5+, this is required to load Svelte correctly, due to what appears to be code generation issues with TypeScript, see https://github.com/microsoft/TypeScript/issues/16577.

This works around that by using telling end users to use a newly added feature in Webpack 5+, that uses Webpack 4 behavior for resolving module names.

(Webpack 5 is currently already supported when emitCss is false)

syvb commented 3 years ago

Superseded by #146.