Suggested configuration to bundle files in browser extensions.
It bundles external dependencies like browserify and creates an IIFE bundle.
npm install --save-dev rollup-config-webext
rollup \
--config node:webext \
--input background.js \
--output dist/background.js
MIT © Federico Brigante