Skip to content

fregante/webextension-polyfill-global

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published