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

[V2]Support "exports" at package.json #4844

Closed
YFengFly opened this issue Jul 4, 2020 · 1 comment
Closed

[V2]Support "exports" at package.json #4844

YFengFly opened this issue Jul 4, 2020 · 1 comment

Comments

@YFengFly
Copy link

YFengFly commented Jul 4, 2020

English is not my native language; please excuse typing errors.
I try to use "package","exports","Package Entry Points " as keywords to search issues.Maybe because I'm not good at English, I didn't find the same issues. I'm sorry if this issues is repeated.

🙋 Feature request

Could support "exports" at package.json -- Node.js : Package Entry Points.

In Snabbdom v1 ,it provides some examples:
import { init } from 'snabbdom/init'

But when I use Parcel 1.12.4,it report

Cannot resolve dependency 'snabbdom/init'

In Parcel:2.0.0-beta.1,it report:

Build failed.
@parcel/core: Failed to resolve 'snabbdom/init' from './src/index.js'

For more detail,you can read this issues.

I noticed that in Node.js v12,it provides "exports" key in package.json, and Webpack 5 has already support it(But Webpack 4 doesn't support it yet).Maybe it better to support it.

@mischnic
Copy link
Member

mischnic commented Jul 4, 2020

Duplicate of #4155

@mischnic mischnic marked this as a duplicate of #4155 Jul 4, 2020
@mischnic mischnic closed this as completed Jul 4, 2020
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

No branches or pull requests

2 participants