Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

refactor: adapt to Vite #940

Merged
merged 9 commits into from
May 5, 2022
Merged

refactor: adapt to Vite #940

merged 9 commits into from
May 5, 2022

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented May 2, 2022

About the changes

https://trello.com/c/EbjaGycH

Changing from react-scripts to Vite may provide some DX-related improvements.

Important files

  • package.json;
  • index.html;
  • vite.config.ts;

Most of the other changes were due to snaps getting updated or tests being slightly adapted to Vitest.

Discussion points

Some tests related to msw are still failing with Vitest, even though the current implementation seems to match Vitest docs.

@vercel
Copy link

vercel bot commented May 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
unleash-frontend ✅ Ready (Inspect) Visit Preview May 5, 2022 at 3:03PM (UTC)

Copy link
Member

@Tymek Tymek left a comment

Choose a reason for hiding this comment

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

LGTM. Can I help with resolving conflicts, or will you handle that?

vite.config.ts Show resolved Hide resolved
@@ -1,5 +1,6 @@
import 'whatwg-fetch';
import 'themes/app.css';
import 'regenerator-runtime/runtime';
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to add this after the merge, since it seems like react-table uses regeneratorRuntime.
See similar relevant issue: TanStack/router#227

Copy link
Member

@Tymek Tymek May 5, 2022

Choose a reason for hiding this comment

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

OK. Something to remember to check on next major version update of react-table.

@nunogois nunogois merged commit 0204286 into main May 5, 2022
@nunogois nunogois deleted the vite branch May 5, 2022 15:15
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