Skip to content

Works for transpilation, but what about bundling? #75

@thomasjm

Description

@thomasjm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions