Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

使用rolldown-vite 时,无法使用带别名的导入 #431

Description

@nailfar

Describe the bug

Image Image

在vite.config.ts 中使用别名无效;

Image

tsconfig 配置无效

Image

添加rolldown.config.js 无效

Image

在源码中添加 alias 有效

Reproduction

demo

Steps to reproduce

No response

System Info

System:
    OS: Linux 6.6 Deepin 23.1 23.1
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
    Memory: 5.80 GB / 31.23 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.16.0 - ~/.config/nvm/versions/node/v22.16.0/bin/node
    Yarn: 1.22.22 - ~/.config/nvm/versions/node/v22.16.0/bin/yarn
    npm: 10.9.2 - ~/.config/nvm/versions/node/v22.16.0/bin/npm
    pnpm: 10.14.0 - ~/.config/nvm/versions/node/v22.16.0/bin/pnpm
  Browsers:
    Chrome: 138.0.7204.92
  npmPackages:
    @vitejs/plugin-basic-ssl: ^2.1.0 => 2.1.0 
    @vitejs/plugin-vue: ^6.0.1 => 6.0.1 
    @vitejs/plugin-vue-jsx: 5.0.0 => 5.0.0 
    rolldown-vite:  7.1.13

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions