diff --git a/packages/taro-swan/src/program.ts b/packages/taro-swan/src/program.ts index e852ab2806e0..3c2b6b846f6a 100644 --- a/packages/taro-swan/src/program.ts +++ b/packages/taro-swan/src/program.ts @@ -41,9 +41,9 @@ export default class Swan extends TaroPlatformBase { ctx.generateFrameworkInfo() this.generateProjectConfig(PROJECT_JSON, PROJECT_JSON, (conf: Record) => { if (conf.smartProgramRoot) { - conf.smartProgramRoot = './'; + conf.smartProgramRoot = './' } - return conf; + return conf }) } })