Skip to content

Export ES6 module via package.json - #13

Open
dhoko wants to merge 1 commit into
creatorrr:masterfrom
dhoko:patch-1
Open

dhoko wants to merge 1 commit into
creatorrr:masterfrom
dhoko:patch-1

Conversation

@dhoko

@dhoko dhoko commented May 22, 2018

Copy link
Copy Markdown

👋 cf https://github.com/rollup/rollup/wiki/pkg.module

We need to use this key inside the package.json to be able to use it inside another project.
ex: eslint will throw an error: 50:32 error Unable to resolve path to module 'web-streams-polyfill' import/no-unresolved`.

You also need to publish the file index.es6.js via npm.

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.

1 participant