mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
13 lines
288 B
TypeScript
13 lines
288 B
TypeScript
|
// @moduleResolution: nodenext
|
||
|
// @module: nodenext
|
||
|
// @jsx: react
|
||
|
|
||
|
// @filename: /src/foo.tsx
|
||
|
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 ".js"
|