@@ -29,9 +29,10 @@ function customWarn(warning) {
29
29
* @param {boolean } options.production
30
30
* @param {string } options.cacheDir
31
31
* @param {string } options.cwd
32
+ * @param {string } options.registryUrl
32
33
* @param {Map<string, string> } options.resolutionCache
33
34
*/
34
- export async function npmBundle ( requestId , { autoInstall, production, cacheDir, cwd, resolutionCache } ) {
35
+ export async function npmBundle ( requestId , { autoInstall, production, cacheDir, cwd, resolutionCache, registryUrl } ) {
35
36
const meta = getPackageInfo ( requestId ) ;
36
37
const pkgName = meta . name ;
37
38
@@ -46,7 +47,7 @@ export async function npmBundle(requestId, { autoInstall, production, cacheDir,
46
47
browserFieldPlugin ( { browserReplacement } ) ,
47
48
npmExternalDeps ( { requestId } ) ,
48
49
! process . env . DISABLE_LOCAL_NPM && npmLocalPackage ( { root : cwd } ) ,
49
- autoInstall && npmAutoInstall ( { cacheDir } ) ,
50
+ autoInstall && npmAutoInstall ( { cacheDir, registryUrl } ) ,
50
51
npmLoad ( { browserReplacement, resolutionCache } ) ,
51
52
jsonPlugin ( { root : cwd } ) ,
52
53
commonjsPlugin ( { production } ) ,
0 commit comments