ladybird/Userland/Libraries/LibJS/Tests/modules/path-resolution.mjs
Linus Groh 93b4c3bb82 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.
2022-06-26 22:03:53 +01:00

5 lines
184 B
JavaScript

// If all of these succeed, path resolution with implicit extensions is working.
import "./module-with-default";
import "./submodule";
import "./json-module" assert { type: "json" };