You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to maintain separate behavior and features depending on whether the GUI is being built for internal tool usage or as a library version for distribution.
This requires:
Mode-specific Vite configuration files that optimize or exclude certain features.
Shared configuration elements (like ROUTES) need to be modularized into separate files per mode, then conditionally exported depending on VITE_BUILD_MODE.
Navigation and routing should be dynamically adapted so that in library mode, internal/testing-specific components (like load testing) are not visible or accessible.
Additional Info
Example .env files:
.env.tool → VITE_BUILD_MODE=tool
.env.lib → VITE_BUILD_MODE=lib
Helps prevent accidental exposure of internal tools in distributed library builds.
Improves modularity, maintainability, and clarity in build pipeline.
feature request
TODO
Separate build processes for
toolandlibraryGUI.Create separate Vite configuration files for each mode.
When building in
toolmode, include all files.When building in
librarymode:loadtestfolder from the build.Use
.envfiles to manage build mode (VITE_BUILD_MODE=toolorlib).Split shared files (e.g., routes) into two variants (
routes.tool.ts,routes.lib.ts) and dynamically import/export based on mode.Add
vite.tool.config.tsandvite.lib.config.tsfiles for each mode.Update
package.jsonwith:Describe Solution
We want to maintain separate behavior and features depending on whether the GUI is being built for internal tool usage or as a library version for distribution.
This requires:
ROUTES) need to be modularized into separate files per mode, then conditionally exported depending onVITE_BUILD_MODE.librarymode, internal/testing-specific components (like load testing) are not visible or accessible.Additional Info
Example
.envfiles:.env.tool→VITE_BUILD_MODE=tool.env.lib→VITE_BUILD_MODE=libHelps prevent accidental exposure of internal tools in distributed library builds.
Improves modularity, maintainability, and clarity in build pipeline.