d2iq/ui-kit

Update from Webpack 4 to Vite

Closed this issue · 0 comments

Description

We'd like to update from Webpack 4 to Vite. This will lead to faster build times.

The new version of Storybook (7) is in beta testing and set to release soon. With this new version, Vite or Webpack 5 will be suggested. Upgrading our builder will allow for build optimizations, such as lazy compilation and filesystem caching.

There may be some caveats to this update alongside Storybook and some research to be done there to resolve any issue while updating.

Acceptance Criteria

Migrate from Webpack 4 to Vite.

How to Contribute

Please review the contributing documentation beforehand.

Steps to Contribute:

  1. Fork the repository.
  2. Clone it to your local system.
  3. Create a new branch.
  4. Make your changes. Make sure that tests are still passing. To update snapshot tests, run npm run test -- -u and include the updated tests in your commit.
  5. Commit your changes. When committing prefix your commit message with the appropriate conventional commit type. For example, refactor: <component_name> tests.
  6. Push up your changes. In GitHub, click the compare & pull request button to begin drafting your pull request.
  7. Fill out the pull request form and attach the "ready for review" label when complete.