-
Vite is very fast. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
I found a great example in youtube: |
Beta Was this translation helpful? Give feedback.
-
I found a way:
|
Beta Was this translation helpful? Give feedback.
-
I have created a Vite plugin that hopefully covers most cases: |
Beta Was this translation helpful? Give feedback.
-
@Bram-dc (or anyone else in this thread): were you able to get However, Vite seems to only apply aliases to your project's immediate dependencies, meaning that if the UI library references "react-native", Vite isn't aliasing it to "react-native-web". Even once I install
However, these dependencies do clearly define a The UI library's Storybook installation, that uses Webpack, loads everything fine. Any ideas? 🥺 |
Beta Was this translation helpful? Give feedback.
I found a way:
npx react-native init demo
cd demo
metro.config.js
->module.exports = {}
This is to compatibility with JSX files.
Maybe you need to reinstall the APP will take effect.
yarn create vite web --template react
cd web && yarn
vite.config.js
->export default defineConfig({})
mkdir share && touch share/test.jsx
Add following code in
share/test.jsx