@marko/language-server 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1380,12 +1380,13 @@ function patch(ts2, configFile, extractCache2, resolutionCache, host, ps) {
1380
1380
  resolvedFileName = path6.resolve(containingFile, "..", moduleName);
1381
1381
  } else {
1382
1382
  const [, nodeModuleName, relativeModulePath] = modulePartsReg.exec(moduleName);
1383
- const { resolvedModule } = ts2.bundlerModuleNameResolver(
1384
- `${nodeModuleName}/marko.json`,
1383
+ const { resolvedModule } = ts2.nodeModuleNameResolver(
1384
+ `${nodeModuleName}/package.json`,
1385
1385
  containingFile,
1386
1386
  options,
1387
1387
  host,
1388
- resolutionCache
1388
+ resolutionCache,
1389
+ redirectedReference
1389
1390
  );
1390
1391
  if (resolvedModule) {
1391
1392
  resolvedFileName = path6.join(