mirror of
https://github.com/LukeHagar/sveltekit-adapters.git
synced 2025-12-07 20:57:49 +00:00
chore: Update package dependencies and configuration for Electron adapter
- Removed package manager and engines from package.json. - Updated pnpm-lock.yaml to reflect new versions of dependencies. - Modified pnpm-workspace.yaml to include only built dependencies for Electron. - Adjusted electron-builder.yaml to exclude unnecessary files and added output directory. - Deleted obsolete electron.vite.config.ts file. - Updated main entry point in examples/electron/package.json to use CommonJS format. - Refactored scripts in examples/electron/package.json for better development experience. - Enhanced error handling and logging in game logic within examples/electron/src/routes/sverdle/+page.server.ts. - Updated adapter-electron to support new protocol handling and build processes.
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { electronPlugin } from 'adapter-electron';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: 'chrome107'
|
||||
},
|
||||
logLevel: 'info',
|
||||
plugins: [sveltekit()]
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
electronPlugin({
|
||||
// The plugin will auto-detect src/main.ts and src/preload.ts
|
||||
// You can override these paths if needed:
|
||||
// mainEntry: 'src/main.ts',
|
||||
// preloadEntry: 'src/preload.ts',
|
||||
// mainOut: 'out/main/index.js',
|
||||
// preloadOut: 'out/preload/index.js'
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user