1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibJS: Infer file extensions when resolving module paths

This allows `import "./foo"` to succeed, even if the file is actually
called `foo.js`. IDEs commonly exclude file extensions in auto-imports.

Closes #14364.
This commit is contained in:
Linus Groh 2022-06-26 21:00:55 +01:00
parent 2b3dd87296
commit 93b4c3bb82
3 changed files with 42 additions and 6 deletions

View file

@ -0,0 +1 @@
// Submodule, `import "./submodule"` should resolve to `submodule/index.js`.