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

Sourcemap for local files is absolute path #26

Open
shgysk8zer0 opened this issue Jun 12, 2023 · 0 comments
Open

Sourcemap for local files is absolute path #26

shgysk8zer0 opened this issue Jun 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@shgysk8zer0
Copy link
Owner

shgysk8zer0 commented Jun 12, 2023

Describe the bug
If scripts use import.meta and are local files, the soucemap contains the absolute filepath.
e.g. /home/${username}/Projects/${project}/${path}

To Reproduce
Steps to reproduce the behavior:

  1. Use import.meta.url or import.meta.resolve() in a local script
  2. Run rollup with rollupImport() and rollupImportMeta()
  3. Open in a browser
  4. See sources/Debugger panel

Expected behavior
The source should not be file://...

Additional context
Need to get back the original id or something, not use the transformed id

@shgysk8zer0 shgysk8zer0 added the bug Something isn't working label Jun 12, 2023
@shgysk8zer0 shgysk8zer0 self-assigned this Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant