ionic-team / ionic-team/vscode-ionic

source map path not currect when debugging android webview

Open
#204 1 comment 0 reactions 0 assignees View on GitHub
bug fixed in webnative.dev
Dominant language
TypeScript
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

# vscode-ionic v1.94.2

when i click `Run->android` button , it wil build for production. so i config `vite.config.ts` to support breakpoint to debug android webview :

```json
//vite.config.ts
build:{
sourcemap:true
},
```

sure it will generate .map file , but the weird thing is the console hit an error for can't find source map. I find a whole day to find out the cause.

the outdir is defalut as `dist` dir , for the point of vite , it will eventurally generate sourcemap like below :
```
"sources":["../../src/interfaces/inspects.d.ts",...]
```
but vscode-ionic just use ${workspacePath} as its default webRoot ,so double back in sourcemap product wrong pathes!
the point is that we don't have any api to change this configurations conveniencly , now alternative to android webview debugging for temporary. vscode-ionic is awesome and really helpful ,I really wish for this tiny problem to fix soooon.😀

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.