Skip to content

Commit

Permalink
chore: remove bundling for main in ESM examples
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed May 1, 2024
1 parent ed8e155 commit af18718
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions example-electron-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "wdio-electron-service-example-electron-builder",
"version": "1.0.0",
"main": "dist/main.bundle.js",
"module": "dist/main.bundle.js",
"main": "dist/main.js",
"module": "dist/main.js",
"type": "module",
"scripts": {
"build": "pnpm build:bundle && pnpm build:package",
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "wdio-electron-service-example",
"version": "1.0.0",
"main": "dist/main.bundle.js",
"module": "dist/main.bundle.js",
"main": "dist/main.js",
"module": "dist/main.js",
"type": "module",
"scripts": {
"build": "pnpm build:bundle && pnpm build:package",
Expand Down
10 changes: 0 additions & 10 deletions example/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

export default [
{
input: 'dist/main.js',
output: {
file: 'dist/main.bundle.js',
inlineDynamicImports: true,
format: 'esm',
},
plugins: [nodeResolve()],
external: ['electron'],
},
{
input: 'dist/preload.js',
output: {
Expand Down

0 comments on commit af18718

Please sign in to comment.