hmsk / vite-plugin-elm

A plugin for Vite enables you to compile an Elm application/document/element

Home Page:https://www.npmjs.com/package/vite-plugin-elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle optimize flag without debug or build

wadouk opened this issue · comments

Hi,

My use case is to generate multiple sub elm programs that are loaded togehter and maybe debugging all together because of integration or communication problems between JS and Elm sub programs. To make the way I have configured the build of sub modules are built the vite build in this way I produce a file that could be loaded as "JS umd". Sometimes to debug one module, or all together, I need to run vite build but for dev purpose with having Debug.log.
I don't find any way in vite to have multiple entries and handle all my programs by the same vite so I have one vite for the top application, and vite build that generate "JS umd" for submodules so I need to have optimize: false in those submodules in dev but with vite build.

Any advice ? workaround ?
I will fork and propose the fix.