- Issue created by @bnjmnm
- ๐ฎ๐ณIndia yash.rode pune
yash.rode โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia yash.rode pune
I am following Migrate CRA to Vite, it is not completely working yet, but can someone verify if I am on the right track.
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
The Migrate CRA to Vite has some good info, but probably shouldn't be followed too closely. Reasons include
- The Umami demo uses esbuild, not Create React App
- We're not serving anything via JS, this is strictly building. Things like running
dev
should still update when files change while using non-minified code, but Drupal is already doing the serving - no "application running on port x" needed
- ๐ฎ๐ณIndia yash.rode pune
If we refresh the page with current MR, we are getting Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. this error, in the previous version where we were using esbuild
linaria({ esbuildOptions: { jsx: 'automatic', }, })
this code in
create-react.mjs
fixed the same problem, what is the equivalent of this in vite.config.ts? - First commit to issue fork.
- Status changed to Needs review
12 months ago 9:20am 15 April 2024 - ๐ฎ๐ณIndia yash.rode pune
dev
,build:react-dev
andbuild:react
all three scripts are running withvite
now.