
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.
5 lines
184 B
JavaScript
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" };
|