File tree Expand file tree Collapse file tree
packages/taro-vite-runner/src/mini Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments