How to know what version of shared package is loaded ? #713
Answered
by
ScriptedAlchemy
Ravikumar911
asked this question in
Q&A
-
Scenario app1 => [email protected] my-library is a shared across all the apps. But I don't want to go to each repo and specific tag to figure out what version is latest in production Is there a way to get what version is library is running
|
Beta Was this translation helpful? Give feedback.
Answered by
ScriptedAlchemy
Mar 31, 2023
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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