kentcdodds / kentcdodds/babel-plugin-preval

Usage with Vite?

Open
#107 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.4k
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I'm migrating a legacy React TypeScript project from Webpack to Vite. I have some pretty substantial preval code.

Vite uses Babel internally, so I think it should be possible to use this with Vite. Has anyone succeeded in getting it working?

Contributor guide

Open the contributing guide

Research direction

Start by examining how the legacy React TypeScript project currently uses preval with Webpack and how Vite’s Babel integration is configured. Investigate whether babel-plugin-preval can run in that Vite setup; done means a verified working configuration or a clearly documented incompatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, react, typescript, vite, webpack
Domain
build-system, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.