Skip to content

file name collision for source map source location in microservices architecture #80

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

Closed
harish-kumar13 opened this issue Mar 18, 2019 · 2 comments

Comments

@harish-kumar13
Copy link

So I have a angular System app that makes use of component from several micro-services libraries, and in my domain, there are few common concepts that have different purpose in different services, and the individual JS names can be the same on different services.
So when source-map-loader extracts the JS src locations from each of these libraries, the file names and their relative paths can collide, and webpack would show only the last file that it copied over with the same name.
Any work around to this or is anything planned around this, or any recommendation.

For example.
Shipping --> Has a JS named order.js at location ./app/order.js
Fullfilment --> Has a JS named order.js at location ./app/order.js

source maps would point to these location in their respective projects. Source maps on both services would have below entry in their JS.
e.g. /***/ "./app/order.js":

When source-map-loader extracts this info chrome debugger would map both these files to below location
webpack:///webpack:///app/order.js

@bennidhamma
Copy link

I'm experiencing the same issue

@cap-Bernardito
Copy link
Member

A same problem #51. Will be resolved there.

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

3 participants