File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,6 @@ class AMDModuleImporter {
179
179
180
180
const cache = new Map < string , Promise < any > > ( ) ;
181
181
182
- let _paths : Record < string , string > = { } ;
183
- if ( typeof globalThis . require === 'object' ) {
184
- _paths = ( < Record < string , any > > globalThis . require ) . paths ?? { } ;
185
- }
186
-
187
182
/**
188
183
* Utility for importing an AMD node module. This util supports AMD and ESM contexts and should be used while the ESM adoption
189
184
* is on its way.
@@ -198,10 +193,6 @@ export async function importAMDNodeModule<T>(nodeModuleName: string, pathInsideN
198
193
isBuilt = Boolean ( ( product ?? ( globalThis as any ) . vscode ?. context ?. configuration ( ) ?. product ) ?. commit ) ;
199
194
}
200
195
201
- if ( _paths [ nodeModuleName ] ) {
202
- nodeModuleName = _paths [ nodeModuleName ] ;
203
- }
204
-
205
196
const nodeModulePath = pathInsideNodeModule ? `${ nodeModuleName } /${ pathInsideNodeModule } ` : nodeModuleName ;
206
197
if ( cache . has ( nodeModulePath ) ) {
207
198
return cache . get ( nodeModulePath ) ! ;
You can’t perform that action at this time.
0 commit comments