Module: @sapphire/plugin-hmr
Interfaces
Variables
version
• Const
version: string
= '[VI]{{inject}}[/VI]'
The @sapphire/plugin-hmr version that you are currently using. An example use of this is showing it of in a bot information command.
Note to Sapphire developers: This needs to explicitly be string
so it is not typed as the string that gets replaced by esbuild
Defined in
projects/plugins/packages/hmr/src/index.ts:18
Functions
start
▸ start(__namedParameter?
): void
Starts HMR for all registered Store Stores in container.stores the main container.
Parameters
Name | Type | Description |
---|---|---|
__namedParameter | HMROptions | The HMROptions. This includes all options from chokidar, as well as whether the HMR should be enabled. The default options are { enabled: true } , and if not provided in the object then enabled is also set to true. |
Returns
void