Exclude react-dom.development.js from production build #9670
Unanswered
dreamorosi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Remix with the new-ish Vite bundler and after running
remix vite:build
I bundle my code withesbuild
to deploy it on AWS Lambda.My entry point is fairly simple and basically only imports the output of the Remix build:
import * as remixServerBuild from '..//build/server/index.js';
.Everything works except I have noticed that React's development packages are being pulled into my bundle:
Is this expected or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions