-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add map file? #88
Comments
Hello @baseplate-admin, could you please describe what is your use-case for this? |
Hi thanks for replying, the use case for map files is that when it's enabled, the original code shows up on the inspect element tab on browser. If source maps are not enabled, it shows up minified codes ( even if i have sourcemap enabled in Here's a blog post that dives deeper into this. |
@baseplate-admin but why do you need the original code of |
Hi, sorry for not being clear. Let me try to clarify the purpose of source maps.
Lets think a scenario like this: I got an error while using the
Please note that sourcemap is only loaded when i open the dev-tools, otherwise it is ignored. Please note that a developer can choose to disable source-map in their own project, in that case I might not be able to clarify everything properly (sorry for that) Here are some resources that might explain the need of source map: |
Hello @baseplate-admin, please check version |
Hi, please give me some time. I will see to it :) |
@mdevils hey, webpack keeps complaining it can't find the .ts files for me from the source map in 2.5.0. Tried the latest
|
@tezhm I've got those warnings via webpack as well. As a temporary solution I've managed to suppress them with overrides in the
|
Hi @mdevils , I did take a look around, it seems that |
@baseplate-admin could you please be more specific? |
Sure, Lets start like this.
This is how the code looks in browser:
|
@baseplate-admin ![]() And the source map has a link to the source file: ![]() And the source file is included to the package: ![]() Can it be that your build-tool just ignores the source-map and removes the source map link comment? |
This could be the case too. But i am using I will keep debugging and see what's causing this weird behavior |
Hi,
Thanks for creating this awesome library. I was wondering if it was possible to add a map file for this repo.
The text was updated successfully, but these errors were encountered: