Skip to content

ESM fix - #12

Open
tpluscode wants to merge 2 commits into
andreasbm:masterfrom
tpluscode:esm-fix
Open

ESM fix#12
tpluscode wants to merge 2 commits into
andreasbm:masterfrom
tpluscode:esm-fix

Conversation

@tpluscode

Copy link
Copy Markdown

Fixes #9

In addition to type: module, the modules must all be referenced with .js extension. As a side note, I can highly recommend using eslint-plugin-require-extensions which ensures the extensions are used

The second commit is a little unrelated but it's the minimum I had to do to have the compilation work. Since you do not lock on a specific version of dependencies, I got type errors from @types/babel__traverse. Most likely caused by an old version of typescript, hence I added v5 to the dev dependencies. Let me know if you'd like this handled differently

@TomasCarlson

Copy link
Copy Markdown

@andreasbm would appreciate this merge :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@appnest/masonry-layout doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module

2 participants