capacitor-sockets/rollup.config.js
2024-10-03 13:45:22 -04:00

24 lines
483 B
JavaScript

export default {
input: 'dist/esm/index.js',
output: [
{
file: 'dist/plugin.js',
format: 'iife',
name: 'capacitorSockets',
globals: {
'@capacitor/core': 'capacitorExports',
"mitt": "mitt"
},
sourcemap: true,
inlineDynamicImports: true,
},
{
file: 'dist/plugin.cjs.js',
format: 'cjs',
sourcemap: true,
inlineDynamicImports: true,
},
],
external: ['@capacitor/core', "mitt"],
};