File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
"use strict" ;
7
7
8
- const findPnpApi = require ( "module" ) . findPnpApi ;
9
8
const versions = require ( "process" ) . versions ;
10
9
const Resolver = require ( "./Resolver" ) ;
11
10
const { getType, PathType } = require ( "./util/path" ) ;
@@ -126,13 +125,18 @@ function processPnpApiOption(option) {
126
125
option === undefined &&
127
126
/** @type {NodeJS.ProcessVersions & {pnp: string} } */ versions . pnp
128
127
) {
129
- const _findPnpApi = /** @type {function(string): PnpApi | null }} */ (
130
- findPnpApi
131
- ) ;
128
+ const _findPnpApi =
129
+ /** @type {function(string): PnpApi | null }} */
130
+ (
131
+ // @ts -ignore
132
+ require ( "module" ) . findPnpApi
133
+ ) ;
134
+
132
135
if ( _findPnpApi ) {
133
136
return {
134
137
resolveToUnqualified ( request , issuer , opts ) {
135
138
const pnpapi = _findPnpApi ( issuer ) ;
139
+
136
140
if ( ! pnpapi ) {
137
141
// Issuer isn't managed by PnP
138
142
return null ;
You can’t perform that action at this time.
0 commit comments