Skip to content

Are import attributes supported? #27

Open
@bennycode

Description

@bennycode

TypeScript 5.3 supports import attributes, but when I execute the following code, I don't see anything on my terminal:

import diags from '../examples/dump-1724954858848.json' with {type: 'json'};

console.log(diags.length);
console.log(diags.map(diag => diag.code).join(', '));
TSIMP_DIAG=error node --import=tsimp/import ./src/main.ts

When I use ts-node instead, printing works fine:

node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/main.ts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions