bunkat/pseudoloc

add support for es6 imports

Opened this issue · 0 comments

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.