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

Lage's own build does not produce SourceMaps #810

Open
dannyvv opened this issue Oct 28, 2024 · 0 comments
Open

Lage's own build does not produce SourceMaps #810

dannyvv opened this issue Oct 28, 2024 · 0 comments

Comments

@dannyvv
Copy link
Member

dannyvv commented Oct 28, 2024

Describe the bug
Debugging Lage itself is not as easy as it could be.
The transpiler does not seem to emit SourceMap (.js.map) files to make the debug/edit loop super effecient...

To Reproduce
Steps to reproduce the behavior:

  1. enlist and build lage repo
  2. add launch.json with a section like:
  3. put a breakpoint in the .ts file that should be hit...
  4. Start the program

Expected behavior
Breakpoint to be hit. But it is not because there is no sourcemap (not for the .js file running with yarn watch nor for the bundle...

Troubleshooting
I tried adding sourcemaps: true to the .swrcc file but that flag only works for the entire compile unit and we are manually doing stuff file by file...
I tried reading the rust code, but it seems that the 'transform' function does not handle sourcemaps....

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