Skip to content

Acorn parser does not support import attributes #105

@timfish

Description

@timfish

The older import assertion syntax works:

import coolFile from './something.json' assert { type: 'json' }

But acorn does not appear to support the newer import attribute syntax and it will not get added until Stage 4:

import coolFile from './something.json' with { type: 'json' }

PR #104 actually works around this issue by falling back to the parent loader when parsing fails.

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