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

Vite: Keep using absolute path node_modules splitting #19836

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Nov 14, 2022

Issue: lifeiscontent/storybook-addon-next-router#69

Failing vite-bench jobs.

What I did

In #19689, we removed a hack that splits addon paths by node_modules and tries to turn them into "bare" imports so that pnpm and vite can process them correctly.

Well, turns out that other addons out there are still using absolute paths, so we need to keep this hack around.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@IanVS IanVS requested a review from shilman November 15, 2022 02:13
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!! 🚀

@shilman shilman merged commit 2a1104a into next Nov 15, 2022
@shilman shilman deleted the vite/addon-absolute-paths branch November 15, 2022 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants