alibaba / alibaba/rax

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

Open
#2,368 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
8k
Forks
611
PR merge metrics
No merged PRs in 30d

Description

### ⌨️

- [ ] Would you like to work on a fix?

### 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

- Node: v14.0.0
- rax-app: v3.8.18
- browser: chrome

### build.json

_No response_

### Possible solution

_No response_

### Additional context

1. 确认过,有 sourceMap 文件
2. webpack 产物里没有 ts/js 文件
![image](https://user-images.githubusercontent.com/14234261/178692989-cd42107e-7f74-42f7-8fe9-2afe1d592f1c.png)

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Node v14.0.0 and rax-app v3.8.18 after reinstalling node_modules. Inspect the webpack output and sourceMap files; done means the generated artifacts include the JavaScript or TypeScript files referenced by the source map.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, typescript, webpack
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.