feat(electron): move preload to infra (#3011)
This commit is contained in:
1 parent
24be73ef63
commit
dfbec46ded
20 files changed
+372
-188
No files matched your search
@@ -8,13 +8,19 @@ const root = fileURLToPath(new URL('.', import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
minify: false,
|
||||
lib: {
|
||||
entry: {
|
||||
index: resolve(root, 'src/index.ts'),
|
||||
'core/event-emitter': resolve(root, 'src/core/event-emitter.ts'),
|
||||
'preload/electron': resolve(root, 'src/preload/electron.ts'),
|
||||
},
|
||||
formats: ['es', 'cjs'],
|
||||
name: 'AffineInfra',
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ['electron', 'async-call-rpc', 'rxjs'],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
dts({
|
||||
|
||||
Reference in new issue
Block a user