-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
[Feature Request] Option to generate a map file even for vendor-bundle #343
Comments
This sounds very reasonable. I think there are a couple of other issues we need to tackle first, such as generating map files for the Aurelia libs. Also, we need to think what we should do if a vendor dependency doesn't have a map file. So, this can be a bit tricky. |
@EisenbergEffect You're absolutely right. As a starting point you could support a string property like |
We may need something along those lines. I'd be interested to see if there is already a standard way of handling it or if there are a set of patterns that library authors tend to follow. |
There is definitely a good habit of distributing Regarding the actual merge process, it's possible, at least after a quick google search: https://www.npmjs.com/package/grunt-merge-source-maps The source code is pretty straightforward (I just read the P. |
Our corporate project is deploying all our common "code" as a library that is used in our applications. This has been a critical issue for us. My assumption was there was just some switch we had to flick to get it to work, but it would appear to be a deeper issue. We do have our app code source mapping, but that is only usually about 5-10% of the total app (since most is encapsulated in common library code published to our internal repos) @zhhz would be most interested. I should mention, that our need is primarily not for the vendor-bundle but for another bundle (which is our library) but from the inclusion perspective it would be the same as vendor... ie. the code is not present directly, but the modules in node_modules do have the source maps. |
I have tested this, and a sourcemap is now generated for the vendor-bundle when atleast one sourcemap has been found. Keep an eye on #624 for further improvements |
That's good if you include minified files with source maps. But if like me you rely on the build process to minify your files, you're still stuck. And I don't see any improvements on this in #624. Should this issue be re-opened? |
I'm submitting a feature request
0.20.0
Please tell us about your environment:
Operating System:
OSX 10.11.6
Node Version:
6.4.0
NPM Version:
3.10.8
Browser:
all
Language:
all
Current behavior:
Now I have the option to turn on/off the generation of source maps for the
app-bundle
, but I cannot find a way to have source maps generated for thevendor-bundle
Expected/desired behavior:
Have a configuration option to generate the source maps for the
vendor-bundle
Sometimes you are in the following conditions:
vendor-bundle
as they are not strictly app code. But you'd like to be able to debug them in the browser as well, even if they have tons of unit tests..The text was updated successfully, but these errors were encountered: