Skip to content

Commit a839941

Browse files
committed
fix(taro-platform-harmony-cpp): 修复鸿蒙编译错误 (#18093)
1 parent 4a44051 commit a839941

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/taro-platform-harmony-cpp/src/program/vite/inject-env.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import type * as BabelCore from '@babel/core'
55
import type { PluginOption } from 'vite'
66
import type Harmony from '..'
77

8-
export default function (platform: Harmony): PluginOption {
8+
export default function (this: Harmony): PluginOption {
9+
const platform = this
910
const packageName = '@tarojs/taro'
1011
const bindingName = 'Taro'
1112
const businessId = platform.getConfig().defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '')

0 commit comments

Comments
 (0)