Skip to content

require instead of import #12

@fernandopasik

Description

@fernandopasik

I'd like to use this babel plugin with require declarations and it doesn't seem to be working.

require('icon.svg')

I'm getting the usual error SyntaxError: Unexpected token < that is when the plugin is not there

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions