2024-10-03 05:03:39 +00:00
|
|
|
export default {
|
|
|
|
input: 'dist/esm/index.js',
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
file: 'dist/plugin.js',
|
|
|
|
format: 'iife',
|
|
|
|
name: 'capacitorSockets',
|
|
|
|
globals: {
|
|
|
|
'@capacitor/core': 'capacitorExports',
|
2024-10-03 17:45:22 +00:00
|
|
|
"mitt": "mitt"
|
2024-10-03 05:03:39 +00:00
|
|
|
},
|
|
|
|
sourcemap: true,
|
|
|
|
inlineDynamicImports: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: 'dist/plugin.cjs.js',
|
|
|
|
format: 'cjs',
|
|
|
|
sourcemap: true,
|
|
|
|
inlineDynamicImports: true,
|
|
|
|
},
|
|
|
|
],
|
2024-10-03 17:45:22 +00:00
|
|
|
external: ['@capacitor/core', "mitt"],
|
2024-10-03 05:03:39 +00:00
|
|
|
};
|