alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
8k stars 627 forks source link

[BUG] <title> 产物缺失 tsx 文件,sourceMap 无效 #2368

Open GreyZhou opened 2 years ago

GreyZhou commented 2 years ago

⌨️

Where is the bug from?

Rax App

Minimal code and steps to reproduce the bug

重装 node_modules 后,sourceMap 无效。

Current and expected behavior

目前:缺失 sourceMap 所映射文件 期望:产物中包含 js/ts 文件

Environment

build.json

No response

Possible solution

No response

Additional context

  1. 确认过,有 sourceMap 文件
  2. webpack 产物里没有 ts/js 文件 image

初步猜测:rax-app 下的某个包升级,导致 webpack 产物中没有 js 文件,于是 sourceMap 无法指向对应文件。