Skip to content

Commit

Permalink
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example-electron-builder/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

export default [
{
input: 'dist/preload.js',
output: {
file: 'dist/preload.bundle.cjs',
inlineDynamicImports: true,
format: 'cjs',
},
plugins: [nodeResolve(), commonjs()],
external: ['electron'],
},
];

0 comments on commit aa85bd2

Please sign in to comment.