vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

vite build generates only the server component when VitePluginNode is present in the vite config

Open mrckzgl opened this issue 7 months ago • 0 comments

If I have the following plugin added to the vite config:

    VitePluginNode({
      adapter: 'express',
      appPath: "./src/server.ts",
      exportName: "viteNodeApp",
      initAppOnBoot: true,
    }),

running vite build only builds the server component under src/server.ts. The frontend is not built at all. When removing VitePluginNode, however it is built.

mrckzgl avatar Jun 10 '25 10:06 mrckzgl