Skip to content

fix(pack): alias donesn't work for style file - #2539

Merged
fireairforce merged 2 commits into
nextfrom
fix-style-alias
Jan 22, 2026
Merged

fix(pack): alias donesn't work for style file#2539
fireairforce merged 2 commits into
nextfrom
fix-style-alias

Conversation

@fireairforce

@fireairforce fireairforce commented Jan 22, 2026

Copy link
Copy Markdown
Member

Summary

upstream pr: utooland/next.js#107

修复如下 case:

utoopack 的 alias 对于样式文件不生效:

{
  "config": {
      "resolve": {
          "alias": {
            "@/*": "./input/*" 
          }
      }
   }
}

ts 代码:

import style from '@/index.less';

console.log(style);

Test Plan

添加了快照测试

@fireairforce
fireairforce marked this pull request as ready for review January 22, 2026 10:39
@xusd320
xusd320 enabled auto-merge (squash) January 22, 2026 11:04
@fireairforce
fireairforce disabled auto-merge January 22, 2026 11:44
@fireairforce
fireairforce merged commit c4509e5 into next Jan 22, 2026
15 checks passed
@fireairforce
fireairforce deleted the fix-style-alias branch January 22, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants