@@ -29,9 +29,10 @@ function customWarn(warning) {
2929 * @param {boolean } options.production
3030 * @param {string } options.cacheDir
3131 * @param {string } options.cwd
32+ * @param {string } options.registryUrl
3233 * @param {Map<string, string> } options.resolutionCache
3334 */
34- export async function npmBundle ( requestId , { autoInstall, production, cacheDir, cwd, resolutionCache } ) {
35+ export async function npmBundle ( requestId , { autoInstall, production, cacheDir, cwd, resolutionCache, registryUrl } ) {
3536 const meta = getPackageInfo ( requestId ) ;
3637 const pkgName = meta . name ;
3738
@@ -46,7 +47,7 @@ export async function npmBundle(requestId, { autoInstall, production, cacheDir,
4647 browserFieldPlugin ( { browserReplacement } ) ,
4748 npmExternalDeps ( { requestId } ) ,
4849 ! process . env . DISABLE_LOCAL_NPM && npmLocalPackage ( { root : cwd } ) ,
49- autoInstall && npmAutoInstall ( { cacheDir } ) ,
50+ autoInstall && npmAutoInstall ( { cacheDir, registryUrl } ) ,
5051 npmLoad ( { browserReplacement, resolutionCache } ) ,
5152 jsonPlugin ( { root : cwd } ) ,
5253 commonjsPlugin ( { production } ) ,
0 commit comments