Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rollup's 'jsnext:main' to collect names #103

Closed
benmosher opened this issue Nov 10, 2015 · 2 comments · Fixed by #132
Closed

Use Rollup's 'jsnext:main' to collect names #103

benmosher opened this issue Nov 10, 2015 · 2 comments · Fixed by #132

Comments

@benmosher
Copy link
Member

https://github.com/rollup/rollup/wiki/jsnext:main

May need to fork resolve (or use Rollup's resolver?) to use this key from package.json instead of main to find the ES6 source for modules.

@benmosher
Copy link
Member Author

Worth seeing what libraries support it before putting in a lot of effort, though. One or two big ones could make it worth it.

@benmosher
Copy link
Member Author

Looks like resolve's packageFilter should do the trick.

benmosher added a commit that referenced this issue Nov 30, 2015
- jsnext (#103)
- resolve.packageMains (defers to jsnext:main, regardless)
@benmosher benmosher mentioned this issue Nov 30, 2015
silverwind pushed a commit to silverwind/eslint-plugin-import that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant