mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
8 lines
325 B
TypeScript
8 lines
325 B
TypeScript
// @moduleResolution: node12
|
|
// @module: node12
|
|
|
|
// @filename: /src/bar.cts
|
|
// Extensionless relative path import statement in a cjs module
|
|
// Import statements are not allowed in cjs files,
|
|
// but other errors should not assume that they are allowed
|
|
import { foo } from "./foo"; // should error, should not ask for extension
|