mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
// @moduleResolution: node16
|
|
// @module: node16
|
|
|
|
// @filename: /src/foo.mts
|
|
export function foo() {
|
|
return "";
|
|
}
|
|
|
|
// @filename: /src/bar.mts
|
|
// Extensionless relative path ES import in an ES module
|
|
import { foo } from "./foo"; // should error, suggest adding ".mjs"
|
|
import { baz } from "./baz"; // should error, ask for extension, no extension suggestion
|