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

Packaging: use webpack export to have a nicer path #151

Open
humitos opened this issue Mar 13, 2023 · 0 comments
Open

Packaging: use webpack export to have a nicer path #151

humitos opened this issue Mar 13, 2023 · 0 comments
Labels
Improvement Minor improvement to code

Comments

@humitos
Copy link
Member

humitos commented Mar 13, 2023

Use https://webpack.js.org/guides/package-exports/ to avoid having to use the full dist/ path to import it as a module:

import * as ethicalads from "ethical-ad-client/dist/ethicalads";

https://github.com/humitos/readthedocs-client/blob/9cba1b4a8b4903d912b31c047e0661ef28e52847/src/sponsorship.js#L1-L3

@humitos humitos added the Improvement Minor improvement to code label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code
Projects
None yet
Development

No branches or pull requests

1 participant