File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed 
packages/uni-mp-vite/src/plugin Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,12 @@ function parseRollupInput(inputDir: string, platform: UniApp.PLATFORM) {
174174 if  ( process . env . UNI_MP_PLUGIN )  { 
175175 return  inputOptions 
176176 } 
177-  const  pluginExports  =  getSubpackagePluginExports ( inputDir ) 
178-  Object . keys ( pluginExports ) . forEach ( ( exportPath )  =>  { 
179-  inputOptions [ exportPath ]  =  pluginExports [ exportPath ] 
180-  } ) 
177+  if  ( platform  ===  'mp-weixin' )  { 
178+  const  pluginExports  =  getSubpackagePluginExports ( inputDir ) 
179+  Object . keys ( pluginExports ) . forEach ( ( exportPath )  =>  { 
180+  inputOptions [ exportPath ]  =  pluginExports [ exportPath ] 
181+  } ) 
182+  } 
181183 const  manifestJson  =  parseManifestJsonOnce ( inputDir ) 
182184 const  plugins  =  manifestJson [ platform ] ?. plugins  ||  { } 
183185 Object . keys ( plugins ) . forEach ( ( name )  =>  { 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments