Package Exports
- rollup-plugin-chrome-extension
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-chrome-extension) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-chrome-extension
Build Chrome Extensions with this composed Rollup plugin. This plugin returns an array of plugins, so you will need to spread it into the Rollup config plugins array.
Installation
npm i rollup-plugin-chrome-extension -D
Usage
import { rollup } from 'rollup'
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import chromeExtension from 'rollup-plugin-chrome-extension'
import pkg from './package.json'
export default {
input: 'src/manifest.json',
output: {
dir: 'build',
format: 'esm'
},
plugins: [
// Spread it out!
...chromeExtension({ pkg }),
resolve(),
commonjs()
]
}