-
Notifications
You must be signed in to change notification settings - Fork 92
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 loader complains "Missing source files" in the new v8 build #228
Comments
Please, provide some more info about your project's setup:
I tried to google the error message and it seems like it's just a false-positive warning by the latest CRA 5 / Webpack 5 release: You can hide it temporarly by setting Based on links below, adding Or we can just remove |
@maslianok I'm more leaning toward removing |
Thanks @snelsi. For the time being I have disabled source maps for the package in my webpack config:
In the source maps for |
We haven't published library sources to npm before. Does it mean that the library's source maps didn't work at all? 😮 Well, looks like it's a good idea to remove files that are useless 😄 |
Removed in v8.0.1 |
Thanks @maslianok for a quick fix. Source maps are vey useful when I need to troubleshoot an issue. They worked in v7. For each of the src/* files you had a section in |
@okhomenko You are right, sourcesContent is Looks like to fix this is just a matter of adding |
Do we increase production build size by adding sourcemaps/sources to the module? |
I did some testing and it seems my understanding of sourcemaps was correct. Firs run: current v8.0.1 build without sourcemaps I suppose other modern libraries also follow this rule. Can you confirm or deny this? |
Can confirm that the only difference between the build with Either to include or exclude the source map files from the build decides the user, really. Looks good to me to merge in the master 👍: |
Merged and published v8.0.2. Thank you, @snelsi @okhomenko please confirm that it works as you expected |
Thanks @snelsi and @maslianok! It works as expected 🎉 |
The text was updated successfully, but these errors were encountered: