-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Core: Fix builders/renderer PnP support #21486
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to:
- add
wrapForPnP
to core-common - re-export it from each of the frameworks to be used in user
main.js
Nope, not possible:
the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Revert "Merge pull request #21486 from storybookjs/norbert/wrap-for-pnp"
Closes https://discord.com/channels/486522875931656193/1081643102349049937/1081643102349049937
Here's the repro for the bug: https://github.com/ndelangen/storybook-7-vite-test
What I did
We use
dirname(require.resolve('${package}/package.json'))
in a bunch of places, and actually the bug was that we forgot in som places.This makes the code look the same everywhere, using the very clear wrapForPnP function (which has to be defined locally!!!).