Skip to content

Add "exports" to get rid of "dist" from import paths #3208

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

Closed
sla100 opened this issue May 7, 2021 · 0 comments · Fixed by #3274
Closed

Add "exports" to get rid of "dist" from import paths #3208

sla100 opened this issue May 7, 2021 · 0 comments · Fixed by #3274

Comments

@sla100
Copy link

sla100 commented May 7, 2021

Is your feature request related to a problem? Please describe.
I'm always frustrated when I see the technical path dist while importing:

import "@ui5/webcomponents/dist/Button";

Describe the solution you'd like

Use exports package.json feature recognizable to modern tools (Node 12, Webpack 5)

"exports": {
  "./*": "./dist/*",
  "./package.json": "./package.json"
}

Additional context
Oldest tools may still use longest patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Status: 1.0.0-rc.15 (released Aug)
Development

Successfully merging a pull request may close this issue.

4 participants