0.10.1-1 • Published 1 year ago

webextension-polyfill-global v0.10.1-1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
1 year ago

webextension-polyfill-global npm version

Wrapper around Mozilla’s webextension-polyfill to make it available as a global variable even with a bundler

Mozilla’s webextension-polyfill makes it difficult to be imported as an actual polyfill, so you can import this package as a minimal wrapper to make it available as a global.

Install

npm install webextension-polyfill-global

or if you're a TypeScript user:

npm install webextension-polyfill-global
npm install @types/webextension-polyfill -D

Usage

Just this. Types will also be available globally.

import 'webextension-polyfill-global';

Related

License

MPL-2.0 © Federico Brigante