@bazumax/capacitor-codepush
Version:
CodePush Plugin for Capacitor
22 lines (20 loc) • 526 B
JavaScript
import nodeResolve from '@rollup/plugin-node-resolve';
export default {
input: 'dist/esm/index.js',
output: {
file: 'dist/plugin.js',
format: 'iife',
name: 'capacitorPlugin', // TODO: change this
globals: {
'@capacitor/core': 'capacitorExports',
},
sourcemap: true,
},
plugins: [
nodeResolve({
// allowlist of dependencies to bundle in
// @see https://github.com/rollup/plugins/tree/master/packages/node-resolve#resolveonly
resolveOnly: ['lodash'],
}),
],
};