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

add rewrites in storybook preset #18364

Merged
merged 2 commits into from
Nov 3, 2020
Merged

add rewrites in storybook preset #18364

merged 2 commits into from
Nov 3, 2020

Conversation

eric-burel
Copy link
Contributor

Hi,

The absence of a rewrites option in Storybook preset was failing it at runtime.

It now works and solves storybookjs/storybook#11639 (it allows Storybook to support tsconfig paths out of the box like Next does).

There is also an issue in line if (!(rule.test instanceof RegExp)) return true, it is missing parenthesis. I'll try to provide another PR with a TS version and fix this issue too, because both issues are caught easily by TypeScript.

timneutkens
timneutkens previously approved these changes Oct 28, 2020
@Timer Timer merged commit b87b2d4 into vercel:canary Nov 3, 2020
jamesgeorge007 pushed a commit to jamesgeorge007/next.js that referenced this pull request Nov 5, 2020
@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants