Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite support #371

Open
hyochan opened this issue Jul 20, 2022 · 2 comments
Open

Vite support #371

hyochan opened this issue Jul 20, 2022 · 2 comments

Comments

@hyochan
Copy link

hyochan commented Jul 20, 2022

🚀 Feature Proposal

I have tried to use fbt in vite with React. However, it doesn't seem reliable.
I think it'd be great to have a sample for vite as well as webpack.

Motivation

These days, people are interested in working on React app with vite.
https://www.section.io/engineering-education/creating-a-react-app-using-vite

Example

I have tried to migrate webpack to vite in current PR. I also stated what is not currently working in the description.

Pitch

We need a solution for vite!

@knightcube
Copy link

Has this issue been resolved yet?

@alexandernanberg
Copy link
Contributor

Ported the Webpack demo to Vite and TypeScript here https://github.com/alexandernanberg/fbt-vite-demo

There are some issues with the types that we can fix and fbt-manifest doesn't work with ts out-of-the-box, but with my pnpm patch it does work fine afaict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants