You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
422 B

const typescript = require('rollup-plugin-typescript2');
module.exports = {
input: 'src/index.ts',
output: [
{
file: 'dist/plugin.js',
format: 'cjs',
sourcemap: true
},
{
file: 'dist/esm/index.js',
format: 'es',
sourcemap: true
}
],
external: ['@capacitor/core'],
plugins: [
typescript({
tsconfig: './tsconfig.json',
clean: true
})
]
};