Skip to content

How to know what version of shared package is loaded ? #713

Discussion options

You must be logged in to vote

In app code, console.log(webpack_share_scopes)

You'll see a default object, in that, you'll see registered shared modules with a property "from" so you know who owns it as well as a "loaded" prop - if loaded =1/true then it was used.

This wont work outside of webpack code, so you can just drop it in the browser console, its got to be in the bundle code since its a private module variable to webpack

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ScriptedAlchemy
Comment options

Answer selected by Ravikumar911
@Ravikumar911
Comment options

@sotiristherobot
Comment options

@sotiristherobot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants