-
Notifications
You must be signed in to change notification settings - Fork 15
Closed as not planned
Description
I set up vavite and it's working in development, but when I build for production, the server entry point dist/server/index.mjs contains externalized imports like import express from "express". These imports don't work unless I include an extra node_modules in production with the production dependencies.
But I really don't want to do this, because this node_modules folder would take tens of megabytes of extra space.
I'm migrating this app from a Webpack setup, where the index.ts file is bundled just like any other entry point, so the production dependencies are built in and optimized, tree-shaken etc.
Is there a way to accomplish the same thing with vavite?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels