chore: read the Svelte config via @sveltejs/load-config - #17039
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/2f4098f61d07e1235c73e30dd501ac0a58e74992Open in |
🦋 Changeset detectedLatest commit: 2f4098f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: QUIET Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
Merge Risk: ⚪ Minimal · up to
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Comment |
packages/package/src/config.jshas its ownresolveConfig+ find-plugin loader, withimport_peerandresolve_peercopied alongside it. It resolves under'build', so reading the config runs the fullsync.alland needssrc/app.html, and it makesvitemandatory even for a library that only has asvelte.config.js.Use
@sveltejs/load-configinstead. It resolves under'serve'and falls back tosvelte.config.jswhen the Vite config has no Svelte plugin.