webextension-polyfill-global
TypeScript icon, indicating that this package has built-in type declarations

0.10.1-1 • Public • Published

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

Package Sidebar

Install

npm i webextension-polyfill-global

Weekly Downloads

81

Version

0.10.1-1

License

MPL-2.0

Unpacked Size

3.32 kB

Total Files

7

Last publish

Collaborators

  • fregante