Version ENV Variable

Is there an env variable for the version number of the build? I.e. the version number in the package.json? Don't see it here: https://docs.plasmo.com/framework/env
Plasmo Docs
Environment Variables – Plasmo
Plasmo offers first-class support for environment variables. Learn how to use them in your browser extension.
3 Replies
nahtnam
nahtnamOP•2y ago
Ended up just doing import pkg from '../../package.json';
lab
lab•2y ago
Try with just /package.json , it should work I think :d
martonlederer
martonlederer•2y ago
you can just use browser.runtime.getManifest().version?
Want results from more Discord servers?
Add your server