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

Loading Ultra module from local folder: DevTools source maps not working #289

Open
d9k opened this issue Dec 13, 2023 · 1 comment
Open

Comments

@d9k
Copy link

d9k commented Dec 13, 2023

Tried to fork Ultra to fix JSON import crash on client side | ultra Issue #288

At importMap.json I set

  "ultra/": "file:///home/d9k/forks/ultra/"

Then run deno task dev from my project code folder as usual. It works but browser DevTools sources maps stopped to work (no top/localhost:8000/_ultra/compiler folder and files from there available)!

I have Ultra fork folder at v2.3.8 git tag without any code changes.

Before and after switch "ultra/" in importMap.json from https://deno.land/x/ultra@v2.3.8/ to local folder

How to fix browser DevTools source maps when mapping Ultra module dependency to local folder?

@d9k
Copy link
Author

d9k commented Dec 13, 2023

Strangely DevTools source mapping works if I change importMap.json entry to relative path:

  "ultra/": "../../../forks/ultra/"

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