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 migration #17860

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Vite migration #17860

wants to merge 15 commits into from

Conversation

Neues
Copy link
Contributor

@Neues Neues commented Oct 23, 2024

Closes #

Replaces Storybook Webpack builder with Vite, providing faster startup and refresh times.

Changelog

New

  • {{new thing}}

Changed

  • {{change thing}}

Removed

  • {{removed thing}}

Testing / Reviewing

  • yarn install
  • yarn build, and if this fails, yarn rebuild
  • cd packages/react
  • yarn storybook

* begin to replace webpack with vite - updating story book config
* add vite configuration in storybook
* update storybook dependencies
* remove console logs, reinstall and rebuild
* revert changes to feature flag
* uninstall vite-tsconfig-paths which was unnecessary
* remove comments
* revert changes to feature flag
* uninstall vite-tsconfig-paths which was unnecessary
* remove comments
* fix issue with @storybook/addon-essentials docs overriding remarkGfm
Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for v11-carbon-web-components failed. Why did it fail? →

Name Link
🔨 Latest commit 70f299d
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/6735c1f92bebac0008453e5a

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 91ab138
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/671a39edea50d4000881dee6
😎 Deploy Preview https://deploy-preview-17860--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 91ab138
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/671a39ed744d1b0008755995
😎 Deploy Preview https://deploy-preview-17860--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guidari
Copy link
Contributor

guidari commented Oct 23, 2024

Hey @Neues
Here it is a issue for this migration. We already tried to start a couple months ago as well, so you might find code in the old commits of this PR
Until this commit it was using vite.

* remove unused style config
* revert change to storybook accessibility checker library
@Neues
Copy link
Contributor Author

Neues commented Oct 24, 2024

Hey @Neues Here it is a issue for this migration. We already tried to start a couple months ago as well, so you might find code in the old commits of this PR Until this commit it was using vite.

Hi @guidari, thanks for having a look at this already. I was referencing the work you linked as I was drafting this up. I don't think I'm experiencing the same problems that you were with the __DEV__ global, but I'm not as familiar with it. I don't see errors in console or on the storybook UI about __DEV__ being undefined. However, in ModalWrapper for example, I do not see the warning in console that is meant to be produced here. If I move this check into the render, I start seeing it. I also see it in the console when looking at unstable__StaticNotification as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants