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

[epic] storybook #31

Open
43081j opened this issue Mar 1, 2024 · 1 comment
Open

[epic] storybook #31

43081j opened this issue Mar 1, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@43081j
Copy link
Owner

43081j commented Mar 1, 2024

storybook's dependency tree depends on the flavour of entrypoint you use.

so for this example, let's use the web-components package:
https://npmgraph.js.org/?q=@storybook/web-components-vite

there's quite a lot of deep subtrees we can probably trim out here.

good subtrees to remove are:

assert

Depended on by:

qs

Depended on by:

In most cases, we can likely either:

read-pkg-up

This has some use but the dependency tree is bloated for what it is, and there are more performant solutions.

If possible, we should use read-package-json-fast from npm themselves.

We could use fd-package-json:
https://github.com/es-tooling/fd-package-json

@43081j 43081j added the help wanted Extra attention is needed label Mar 1, 2024
@43081j
Copy link
Owner Author

43081j commented Mar 3, 2024

we can now replace read-pkg-up with fd-package-json:
https://github.com/es-tooling/fd-package-json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant