Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source map path not currect when debugging android webview #204

Open
emergences opened this issue Sep 20, 2024 · 0 comments
Open

source map path not currect when debugging android webview #204

emergences opened this issue Sep 20, 2024 · 0 comments

Comments

@emergences
Copy link

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 :

//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.😀

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

No branches or pull requests

1 participant