Skip to content

Commit

Permalink
fix: registry
Browse files Browse the repository at this point in the history
Use parsedModule.module for modulePath

Signed-off-by: inglkruiz <12603425+inglkruiz@users.noreply.github.com>
  • Loading branch information
inglkruiz committed Dec 12, 2022
1 parent 113d42e commit 04b36e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function importModule(module) {
// specific file that is loaded when the module is required/imported
// As this won't be on the natural module search path, we use createRequire
// to access the module
const modulePath = createRequire(moduleDir).resolve(module)
const modulePath = createRequire(moduleDir).resolve(parsedModule.module)
// Import needs the full path to the module's main .js file
// It also needs to be a file:// url for Windows
const moduleUrl = url.pathToFileURL(modulePath);
Expand Down

0 comments on commit 04b36e7

Please sign in to comment.