Skip to content

Commit b70fd11

Browse files
authored
fix: 深色模式的tabbar无法引用theme.json变量
解决了微信小程序平台,深色模式适配下,tabbar中的icon无法引用theme.json变量的问题
1 parent df16089 commit b70fd11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/taro-vite-runner/src/mini

packages/taro-vite-runner/src/mini/entry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default function (viteCompilerContext: ViteMiniCompilerContext): PluginOp
106106
const { sourceDir } = viteCompilerContext
107107
list.forEach(async item => {
108108
const { iconPath, selectedIconPath } = item
109-
if (iconPath) {
109+
if (iconPath && !iconPath.startsWith('@')) {
110110
const filePath = path.resolve(sourceDir, iconPath)
111111
this.emitFile({
112112
type: 'asset',
@@ -116,7 +116,7 @@ export default function (viteCompilerContext: ViteMiniCompilerContext): PluginOp
116116
this.addWatchFile(filePath)
117117
}
118118

119-
if (selectedIconPath) {
119+
if (selectedIconPath && !selectedIconPath.startsWith('@')) {
120120
const filePath = path.resolve(sourceDir, selectedIconPath)
121121
this.emitFile({
122122
type: 'asset',

0 commit comments

Comments
 (0)