Skip to content

add support for es6 imports #19

@mrcoles

Description

@mrcoles

I seem to be unable to do es6 imports.

import { str } from 'pseudoloc';

str('Hello');

I have a library that does something that like, but when I add it as a dependency to another project that builds everything with Parcel I get an error about require('./pseudoloc') not being able to find the file.

I tried importing 'pseudoloc/pseudoloc', but this doesn't work because that file doesn’t export anything, it just sets it as a global.

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