Skip to content

Throws an unexpected token error on valid syntax #35

@SamVerschueren

Description

@SamVerschueren

Hi 👋 . Thanks for this plugin, it's very useful!

I noticed that when parsing the following import statement, the plugin fails.

import test from 'test.json' with
  { type: 'json' };

It works if the with is on the second line like this

import test from 'test.json'
  with { type: 'json' };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions