mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
8 lines
325 B
TypeScript
8 lines
325 B
TypeScript
// @moduleResolution: node16
|
|
// @module: node16
|
|
|
|
// @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
|