@sveltejs/package
3.0.3 · 17 Nov 2026MIT438k / weekRepositoryHomepagenpmAtom feed
Upgrading @sveltejs/package From 2.0.0 to 3.0.3
39 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 7
- new
- 26
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
Release by release
- Fixed
Remove transformed output files when sources are deleted in watch mode
- Fixed
- Fixed
Exit after packaging when preprocessors leave resources running
- Fixed
- Fixed
Emit component types for the installed Svelte version, rather than the oldest one the
sveltedependency range allows
- Fixed
- Breaking
Require Node 22 or newer
- New
Warn when using a
.server.file or file inside aserverdirectory without importing a server-only module - New
Transform import aliases into relative imports in files
- Fixed
Rewrite
.tsextensions inimport.meta.globpatterns whenrewriteRelativeImportExtensionsis enabled - Fixed
Import resolved peer dependencies as file URLs so project-relative resolution works on Windows
- Fixed
Emit declarations when the tsconfig lives above the package root
- Fixed
Declare typescript as an optional peer dependency so svelte-package works under strict node-linkers
- Breaking
2.5.7 – 2.5.82 releases, nothing new or fixed in the notes
- Fixed
Transform
.tsextensions to.jsin import/export statements of Svelte files when usingrewriteRelativeImportExtensions
- Fixed
- Fixed
Resolve aliases before transpiling for
rewriteRelativeImportExtensions
- Fixed
- Fixed
Resolve more alias issues
- Fixed
21 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.