Skip to content

CE-2806: Add vite

Sky Brewer requested to merge CE-2806-vite into main

Swaps create-react-app scripts with vite:

  • Moves react js files to jsx
  • Add vite for building
  • Update testing libraries for vite
    • Swap jest for vitest
    • Upgrade msw
    • Update storybook to use vite
    • Update cypress to use vite
  • Remove babel in favour of vite

And then some cleanup of dependencies and code based on lints or unused status.

Follow ups:

  • Types are now generated on the fly, so can remove the entry declare module "@ess-ics/ce-ui-common"; in typings.d.ts Unfortunately there are a lot of type bugs to fix... CE-2396
  • We should replace moment as it is deprecated https://momentjs.com/docs/ CE-3332
  • Should investigate an alternative to ace editor. It does not work well with packing up. And is very overkill when we don't do editing. Ticket already exists: CE-2705
Edited by Sky Brewer

Merge request reports

Loading