Skip to content

Commit

Permalink
re-add legacy pkgImporter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Jan 5, 2024
1 parent 0f7f3f9 commit 75e338a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/legacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ function convertOptions<sync extends 'sync' | 'async'>(

return {
functions,
importers,
importers:
options.pkgImporter instanceof NodePackageImporter
? [options.pkgImporter, ...(importers ?? [])]
: importers,
sourceMap: wasSourceMapRequested(options),
sourceMapIncludeSources: options.sourceMapContents,
loadPaths: importers ? undefined : options.includePaths,
Expand Down

0 comments on commit 75e338a

Please sign in to comment.