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 54182ac commit 30759d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-swan/src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default class Swan extends TaroPlatformBase {
ctx.generateFrameworkInfo()
this.generateProjectConfig(PROJECT_JSON, PROJECT_JSON, (conf: Record<string, any>) => {
if (conf.smartProgramRoot) {
conf.smartProgramRoot = './';
conf.smartProgramRoot = './'
}
return conf;
return conf
})
}
})
Expand Down

0 comments on commit 30759d5

Please sign in to comment.