Packages

@sveltejs/package

3.0.3 · 17 Nov 2026MIT438k / weekRepositoryHomepagenpmAtom feed

Your version

43 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.x · latest line
  2. 3.0.3

    17 Nov 2026
    • Remove transformed output files when sources are deleted in watch mode

  3. 3.0.2

    29 Oct 2026
    • Exit after packaging when preprocessors leave resources running

  4. 3.0.1

    14 Oct 2026
    • Emit component types for the installed Svelte version, rather than the oldest one the svelte dependency range allows

  5. 3.0.0

    1 Oct 2026
    • Breaking

      Require Node 22 or newer

    • Warn when using a .server. file or file inside a server directory without importing a server-only module

    • Transform import aliases into relative imports in files

  6. 2.x
  7. 2.5.7 – 2.5.82 releases that only update dependencieschokidar 5Show each
  8. 2.5.6

    20 Nov 2025
    • Transform .ts extensions to .js in import/export statements of Svelte files when using rewriteRelativeImportExtensions

  9. 2.5.5

    20 Nov 2025
    • Resolve aliases before transpiling for rewriteRelativeImportExtensions

  10. 2.5.4

    23 Sep 2025
    • Resolve more alias issues

  11. 2.5.3

    20 Sep 2025
    • Handle import/export name, { ... } when resolving aliases

  12. 2.5.2

    15 Sep 2025
    • Handle import/export * (as ...) when resolving aliases

    • Prevent false-positive alias replacement

  13. 2.5.1

    12 Sep 2025
    • Better alias resolution

  14. 2.5.0

    20 Aug 2025
    • Add --preserve-output flag to prevent deletion of the output directory before packaging

  15. 2.4.1

    7 Aug 2025

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  16. 2.4.0

    14 Jul 2025
    • Support svelte.config.ts

      NOTE

      Your runtime has to support importing TypeScript files for svelte.config.ts to work.
      In Node.js, the feature is supported with the --experimental-strip-types flag starting in Node 22.6.0 and supported without a flag starting in Node 23.6.0.

  17. 2.3.12

    26 Jun 2025
    • Handle non-semver-style dependency versions

  18. 2.3.11

    14 Apr 2025
    • Handle missing package.json gracefully

  19. 2.3.10

    3 Feb 2025

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  20. 2.3.9

    22 Jan 2025
    • Adjust declaration map paths

  21. 2.3.8

    21 Jan 2025
    • Resolve aliases more robustly

  22. 2.3.6 – 2.3.72 maintenance releases: docs, tests or toolingShow each
    • 2.3.725 Oct 2024docs, tests or tooling
    • 2.3.622 Oct 2024docs, tests or tooling
  23. 2.3.5

    13 Sep 2024
    • Use input tsconfig when calling emitDts

  24. 2.3.2 – 2.3.43 maintenance releases: docs, tests or toolingShow each
    • 2.3.412 Aug 2024docs, tests or tooling
    • 2.3.39 Aug 2024docs, tests or tooling
    • 2.3.213 Jun 2024docs, tests or tooling
  25. 2.3.1

    4 Apr 2024
    • Don't strip lang="ts" tag in Svelte 5

  26. 2.3.0

    8 Mar 2024
    • Add option to specify the tsconfig/jsconfig

  27. 2.2.6 – 2.2.72 releases that only update dependencieschokidar 3.6.0Show each
  28. 2.2.5

    26 Dec 2023
    • Improve warning when encountering import.meta.env

  29. 2.2.4

    19 Dec 2023

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  30. 2.2.3

    22 Nov 2023
    • Overwrite nodenext option when transpiling

  31. 2.2.2

    27 Aug 2023
    • Prevent crash on errors in watch mode

  32. 2.2.1

    10 Aug 2023
    • Delay emptying dist/ folder

  33. 2.2.0

    11 Jul 2023
    • Use Svelte 4 typings when packaging if dependencies allow it

  34. 2.1.0

    23 Jun 2023
    • Support Svelte 4

  35. 2.0.2

    20 Feb 2023
    • Don't emit false positive export condition warning

  36. 2.0.1

    17 Feb 2023
    • Print version when running svelte-package --version

  37. 2.0.0

    16 Feb 2023
    • Breaking

      Remove package.json generation and package options from svelte.config.js. New default output directory is dist. Read the migration guide at #8922 to learn how to update

  38. 1.x
  39. 1.0.2

    5 Jan 2023

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  40. 1.0.1

    16 Dec 2022
    • Explicitly mark Node 17.x as not supported

  41. 1.0.0

    14 Dec 2022

    First major release, see below for the history of changes that lead up to this.
    Starting from now all releases follow semver and changes will be listed as Major/Minor/Patch

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.