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

Add clarification on building for CJS with Vite #304

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

bbonamin
Copy link
Contributor

@bbonamin bbonamin commented Feb 6, 2024

I'm migrating our app to Vite, but I can't move to ESM yet. Setting up this config in my vite config fixed my issue with the build output attempting to call require() on remix-utils.

Since you already have a section for CJS in the Readme, I thought I'd help by adding how to fix these issues when moving to vite

README.md Outdated Show resolved Hide resolved
@sergiodxa sergiodxa added the documentation Improvements or additions to documentation label Feb 23, 2024
@sergiodxa sergiodxa changed the title Add clarification on building for cjs with vite Add clarification on building for CJS with Vite Feb 23, 2024
@sergiodxa sergiodxa merged commit 8d83bcd into sergiodxa:main Feb 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants