ソースを参照

fix(dashboard): Fix npm package discovery

Michael Bromley 5 ヶ月 前
コミット
1fc6f853c2
1 ファイル変更1 行追加3 行削除
  1. 1 3
      packages/dashboard/vite/utils/plugin-discovery.ts

+ 1 - 3
packages/dashboard/vite/utils/plugin-discovery.ts

@@ -403,9 +403,7 @@ export async function findVendurePluginFiles({
         path.join(outputPath, '**/*.js'),
         // Node modules patterns
         ...packageGlobs.map(pattern => path.join(nodeModulesRoot, pattern)),
-    ]
-        .map(glob.convertPathToPattern)
-        .map(p => p.replace(/\\/g, '/'));
+    ].map(p => p.replace(/\\/g, '/'));
 
     logger.debug(`Finding Vendure plugins using patterns: ${patterns.join('\n')}`);