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

Build with Vite #311

Merged
merged 2 commits into from
May 16, 2024
Merged

Build with Vite #311

merged 2 commits into from
May 16, 2024

Conversation

robintown
Copy link
Member

Vite is a significantly faster builder than Webpack which the JS ecosystem seems to be adopting widely. We're already using it successfully for Compound Web, and Storybook makes it pretty simple to swap it out for Webpack, so that's what I've done here.

Vite is a significantly faster builder than Webpack which the JS ecosystem seems to be adopting widely. We're already using for Compound Web, and Storybook makes it pretty simple to swap it out for Webpack, so that's what I've done here.
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Probably worth getting another review from someone on Web. Other than Cloudflare failing this looks fine to me, but I can't say I really know what I'm looking at 🙈

@benbz
Copy link
Member

benbz commented Feb 8, 2024

As per discussion with @dbkr the Cloudflare failure is because vite requires a newer version of Node than we have configured. https://gitlab.matrix.org/infrastructure/cloudflare/-/merge_requests/232 to change this in preview, will also need changing in production once confirmed it works and is safe to do

Copy link

cloudflare-workers-and-pages bot commented Feb 8, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f2ff3e9
Status: ✅  Deploy successful!
Preview URL: https://6d50c199.compound-5m4.pages.dev
Branch Preview URL: https://vite.compound-5m4.pages.dev

View logs

@robintown robintown requested review from dbkr and removed request for jmartinesp February 8, 2024 14:42
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Looks sensible!

@robintown
Copy link
Member Author

@benbz Can we go ahead and change the Node version in production? The preview is working, so I'm ready to merge this once production is updated.

@benbz
Copy link
Member

benbz commented May 16, 2024

https://gitlab.matrix.org/infrastructure/cloudflare/-/merge_requests/236 for production. Good for me to merge and apply?

@robintown robintown merged commit f85d146 into main May 16, 2024
2 checks passed
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.

4 participants