Skip to content

Regression in @sveltejs/package@2.5.2 with alias resolution #14480

@x0k

Description

@x0k

Describe the bug

In the previous version, the resolution of this alias worked: export type { foo } from '@/foo/index.js';.
svelte.config.js

const config = {
  kit: {
    adapter: adapter(),
    alias: {
      '@/': './src/',
    },
  },
};

Reproduction

StackBlitz

See the dist/index.d.ts file after npm i && npm run build.

Logs

System Info

System:
    OS: Linux 6.12 cpe:/o:nixos:nixos:25.05 25.05 (Warbler)
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    Memory: 3.59 GB / 15.56 GB
    Container: Yes
    Shell: 5.2.37 - /run/current-system/sw/bin/bash
  Binaries:
    Node: 24.6.0 - /nix/store/90v6af579yzsqdqivfkbkdkra365kkv4-nodejs-24.6.0/bin/node
    npm: 11.5.1 - /nix/store/90v6af579yzsqdqivfkbkdkra365kkv4-nodejs-24.6.0/bin/npm
    pnpm: 10.15.0 - /nix/store/qzw56f9vai5jg9dm3wbm45r6cc6b65d8-pnpm-10.15.0/bin/pnpm
  Browsers:
    Brave Browser: 139.1.81.131
  npmPackages:
    svelte: catalog: => 5.38.6

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions