update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
 * This method provides a custom implementation for the AMD loader to resolve
 * `typescript` module at runtime.
 * @param modules modules to resolve
 * @param cb function to invoke with resolved modules
 */
This method provides a custom implementation for the AMD loader to resolve
`typescript` module at runtime.
@param modules modules to resolve
@param cb function to invoke with resolved modules
This method provides a custom implementation for the AMD loader to resolve ` typescript ` module at runtime . @param modules modules to resolve @param cb function to invoke with resolved modules
function define(modules, cb) {
    const TSSERVER = 'typescript/lib/tsserverlibrary';
    const resolvedModules = modules.map(m => {
        if (m === 'typescript') {
            throw new Error(`Import '${TSSERVER}' instead of 'typescript'`);
        }
        if (m === TSSERVER) {
            const { tsProbeLocations } = parseCommandLine(process.argv);
            m = resolveTsServer(tsProbeLocations).resolvedPath;
        }
        return require(m);
    });
    cb(...resolvedModules);
}
function define ( modules , cb ) { const TSSERVER = 'typescript/lib/tsserverlibrary' ; const resolvedModules = modules . map ( m => { if ( m === 'typescript' ) { throw new Error ( ` ${ TSSERVER } ` ) ; } if ( m === TSSERVER ) { const { tsProbeLocations } = parseCommandLine ( process . argv ) ; m = resolveTsServer ( tsProbeLocations ) . resolvedPath ; } return require ( m ) ; } ) ; cb ( ... resolvedModules ) ; }
This method provides a custom implementation for the AMD loader to resolve
 `typescript` module at runtime.
This method provides a custom implementation for the AMD loader to resolve ` typescript ` module at runtime .