Skip to content

Commit

Permalink
1. 为生成配置文件方法添加适配器参数, 用于适配插件可以根据需要修改生成配置文件
Browse files Browse the repository at this point in the history
2. 优化百度小程序生成配置文件方法
  • Loading branch information
qnnp committed Jan 22, 2024
1 parent d86aa10 commit f4a164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-swan/src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class Swan extends TaroPlatformBase {
close () {
this.modifyComponents()
ctx.generateFrameworkInfo()
this.generateProjectConfig(PROJECT_JSON, PROJECT_JSON, conf => {
this.generateProjectConfig(PROJECT_JSON, PROJECT_JSON, (conf: Record<string, any>) => {
if (conf.smartProgramRoot) {
conf.smartProgramRoot = './';
}
Expand Down

0 comments on commit f4a164b

Please sign in to comment.