Last 12 weeks · 0 commits
2 of 6 standards met
Description When a Svelte component filename contains an ampersand () and the component includes a `cssPath&R&F Header.svelte&%26`). Notes The same filename builds successfully if the component has no block (no CSS extraction). Renaming the file to remove & resolves the issue. This suggests the problem occurs specifically in the CSS extraction path handling. Environment svelte-loader: 3.2.4 Svelte: 5.41.1 Bundler: Rspack 1.7.0
Repository: sveltejs/svelte-loader. Description: Webpack loader for svelte components. Stars: 604, Forks: 73. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 5, open issues: 14. Last activity: 13h ago. Community health: 50%. Top contributors: Rich-Harris, dummdidumm, benmccann, nikku, dependabot[bot], ekhaled, Conduitry, non25, shancarter, esarbanis and others.
Upgrading projects from Svelte 4 to Svelte 5, I noticed HMR is no longer working and the full page reloads on every change. I see in the Readme it mentions. Hot Module Reloading is currently not supported for Svelte 5+ My questions must be: 1. Will this be supported in future? If so, any idea when? 2. Is there another solutions for HMR with Webpack? 3. Is there anything I can do help make this happen?
As briefly mentioned in #242, the config as provided in the README appears to be broken in Svelte 5 as does not exist. When building with the alias config, errors such as and occur. Removing the alias rule fixes these errors. Either removing, fixing, or adding a note to the config would be very helpful so that others don't have to troubleshoot this problem themselves. Thank you!
The documentation states: If you're using Svelte components installed from npm, you should specify this option I don't use any external Svelte components, and this explodes my webpack build output with errors from both Svelte and zip-js that look like: Module not found: Error: Package path . is not exported from package C:\\...\\node_modules\\svelte (see exports field in C:\\...\\node_modules\\svelte\\package.json) Adding the check for svelte as mentioned in the README seems to solve the svelte errors, but I can't work out the right syntax to fix zip-js, so I'd just like to disable the warning entirely.