[examples] Add example demo with vite
See original GitHub issueHope to support vite…
Related issues:
Exported variable in chunk is not defined
: https://github.com/vitejs/vite/issues/1853ESM entry module's exports signature is not preserved
: https://github.com/evanw/esbuild/issues/706
Issue Analytics
- State:
- Created 3 years ago
- Reactions:53
- Comments:43 (12 by maintainers)
Top Results From Across the Web
[examples] Add example demo with vite · Issue #21377 - GitHub
Material-UI, as any other dependency, should just work by npm install ing it and import ing it.
Read more >Getting Started - Vite
A dev server that provides rich feature enhancements over native ES modules, for example extremely fast Hot Module Replacement (HMR). · A build...
Read more >Vite - Vue.js Examples
Template for symfony that uses Vite, Inertia and VueJs 3. 15 August 2022 ; A Vite plugin for creating and injecting favicons during...
Read more >How to set up a Front-End project with Vite, React, and ...
npm init vite@latest demo-project -- --template react-ts ... For setting up ESLint we need to install it and add a configuration file with ......
Read more >Build a JavaScript library with multiple entry points using Vite3
Luckily Vite has something called "Library Mode", which allows us to point to an entry file (like a index.ts file that exports everything...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those struggling with this issue, it still exists for
mui/material-icons
. The following config resolved my issue. Based on others answersAdding this config:
vite.config.js
Seems to solve the issue. At least, it fixes the reproduction that @Mushus has given in #25362 with v4 and v5.
Can people confirm? (from https://github.com/vitejs/vite/issues/1853#issuecomment-793026832) Or infirm with a reproduction.
If it solves the issue, would somebody be interested in adding a vite example inside this folder: /examples 😃?