Skip to content

Commit

Permalink
fix: 修复compilerConfig未获取到buildOptions的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamCaoQAQ committed Jul 19, 2024
1 parent 01b3aa3 commit 0169b2a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/plugin-build/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const logger = getLoggerWithTag('hummer-build')
interface CompilerConfig {
webConfig?: any,
devTool?: IDevTool,
webpackConfig?: any
webpackConfig?: any,
buildOptions?: any
}
export class BuildPlugin extends Plugin {

Expand Down Expand Up @@ -116,6 +117,10 @@ export class BuildPlugin extends Plugin {
...this.projectConfig.devTool
}

this.compilerConfig.buildOptions = {
...this.projectConfig.buildOptions
}

// 校验端口号
if (this.compilerConfig.devTool?.devServerPort) {
if (
Expand Down

0 comments on commit 0169b2a

Please # to comment.