Skip to content

Commit

Permalink
Fixed bug preventing startup on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Clark committed May 11, 2019
1 parent 22ff5d8 commit fa65004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resolver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export function resolve(specifier, parentModuleURL = baseURL, defaultResolve) {
resolved = new URL(fullRelativePath, baseURL);
}
// Make root paths relative to nodejs root.
else if (/^\/(?![a-z]:\/)/i.test(specifier))
// Except for the entry point: src/server.js
else if (/^\/(?:!.+\/src\/server\.js)$/.test(specifier))
resolved = new URL(specifier.slice(1), baseURL);
// Resolve node_modules
else if (!/^\.{0,2}[/]/.test(specifier) && !specifier.startsWith('file:'))
Expand Down

0 comments on commit fa65004

Please sign in to comment.