We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you install tabelle as an NPM package, you have to import it like this:
import 'tabelle/dist/tabelle';
We can shorten that to:
import 'tabelle';
by setting the main attribute in the package.json to dist/tabelle.js 😄
main
dist/tabelle.js
The text was updated successfully, but these errors were encountered:
Arguably, depending on your philosophy, main should point at the ESM source: components/molecules/tabelle/tabelle.js.
components/molecules/tabelle/tabelle.js
You could also use module for that though: https://github.com/rollup/rollup/wiki/pkg.module
module
Sorry, something went wrong.
I would say: Make it as easy as possible to import it 😸
#8: reference lib/index.js to attempt to make it easier to import
ec8e769
joyheron
No branches or pull requests
If you install tabelle as an NPM package, you have to import it like this:
We can shorten that to:
by setting the
main
attribute in the package.json todist/tabelle.js
😄The text was updated successfully, but these errors were encountered: