@open-xchange/vite-helper
v2.0.0
Published
A collection of implementation helpers for Vite plugins
Downloads
627
Maintainers
Keywords
Readme
@open-xchange/vite-helper
A collection of implementation helpers for Vite plugins.
- Utility functions for files and file paths needed for plugin implementations.
- Class
Loggerthat encapsulates a Vite logger instance. Enforces consistent logging style for all Vite plugins. - Class
PluginHelperwith helper methods for:- Logging (encapsulates a
Loggerinstance, see above). - Type narrowing and type assertions of unknown values at runtime.
- Reading and writing binary files, text files, and JSON/YAML configuration files (validated by JSON schemas).
- Managing virtual module identifiers (also for multiple instances of the same plugin).
- Caching of expensive intermediate results based on config file timestamps.
- Logging (encapsulates a
