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
Ended up just doing
import pkg from '../../package.json';
Try with just
/package.json
, it should work I think :dyou can just use
browser.runtime.getManifest().version
?