Skip to content

Commit

Permalink
fix: break api
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearLuvMoki committed Sep 11, 2024
1 parent 2582e55 commit cb2511a
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions rsbuild/react-electron-template/builder/main/rsbuild.build.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
import {defineConfig} from '@rsbuild/core';
import {releaseMainPath, rootPath, srcMainPath} from '../common/paths';
import {join} from 'path';
import { defineConfig } from '@rsbuild/core';
import { releaseMainPath, rootPath, srcMainPath } from '../common/paths';
import { join } from 'path';
import CommonConfig from '../common/rsbuild.common';


const Config = defineConfig({
tools: {
rspack: {
target: 'electron-main',
},
tools: {
rspack: {
target: 'electron-main',
},
source: {
entry: {
index: join(srcMainPath, './index.ts'),
preload: join(srcMainPath, './preload.ts'),
},
},
source: {
entry: {
index: join(srcMainPath, './index.ts'),
preload: join(srcMainPath, './preload.ts'),
},
output: {
targets: ['node'],
distPath: {
root: join(releaseMainPath),
server: './',
},
cleanDistPath: true,
},
output: {
target: 'node',
distPath: {
root: join(releaseMainPath),
},
cleanDistPath: true,
},
});

module.exports = Object.assign(CommonConfig, Config);

0 comments on commit cb2511a

Please sign in to comment.