File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " electron-incremental-update" ,
3- "version" : " 2.4.3 " ,
3+ "version" : " 3.0.0-beta.1 " ,
44 "description" : " Electron incremental update tools with Vite plugin, support bytecode protection" ,
55 "keywords" : [
66 " bytecode" ,
6161 "dev" : " tsdown --watch" ,
6262 "build" : " tsdown" ,
6363 "play" : " cd ./playground && vite" ,
64- "release" : " pnpm test && pnpm run build && bumpp --all && npm publish " ,
64+ "release" : " bun run format && bun run lint && bun run test && bun run build && bumpp --all" ,
6565 "test" : " bun test" ,
6666 "test:dev" : " bun test --watch" ,
6767 "format" : " oxfmt" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ export function notBundle(options: NotBundleOptions = {}): Plugin {
2929 id : bareImportRE ,
3030 } ,
3131 async handler ( source , importer ) {
32- if ( ! importer || importer . includes ( 'node_modules/' ) ) { return }
32+ if ( ! importer || importer . includes ( 'node_modules/' ) ) {
33+ return
34+ }
3335 if ( externalIds . has ( source ) ) {
3436 return { id : source , external : true }
3537 }
@@ -39,7 +41,9 @@ export function notBundle(options: NotBundleOptions = {}): Plugin {
3941 } )
4042
4143 const id = resolved ?. id
42- if ( ! id || ! nodeModulesRE . test ( id ) || options . filter ?.( id ) === false ) { return }
44+ if ( ! id || ! nodeModulesRE . test ( id ) || options . filter ?.( id ) === false ) {
45+ return
46+ }
4347
4448 try {
4549 // Because we build Main process into `cjs`, so a npm-pkg can be loaded by `require()`.
Original file line number Diff line number Diff line change 1+ import type { Plugin , UserConfig } from 'vite'
2+
13import { loadPackageJSON } from 'local-pkg'
2- import { mergeConfig } from 'vite' ;
3- import type { Plugin , UserConfig } from 'vite' ;
4+ import { mergeConfig } from 'vite'
5+
6+ import type { ElectronOptions } from './core'
7+ import type { RolldownOptions } from './utils'
48
5- import electron from './core' ;
6- import type { ElectronOptions } from './core' ;
7- import type { RolldownOptions } from './utils' ;
9+ import electron from './core'
810
911export interface ElectronSimpleOptions {
1012 main : ElectronOptions
You can’t perform that action at this time.
0 commit comments