This section describes configuration of the Runtime plugin.
Object
The runtime is configured as follows:
Configure in modern.config.ts
:
Configure using defineConfig
API:
When there is a function in the runtime configuration, it can only be configured this way.
Using runtime configuration, you can solve the problem that runtime plugin configuration needs to be at runtime to get specific content.
Runtime plugin runtime configuration and configuration directly in modern.config.ts
are merged by default, and runtime configuration takes precedence.
The defineConfig
API only accepts the specific configuration of Runtime plugins. Enabling the plugin is determined through modern.config.ts
configuration."
Object
Add the runtime configuration according to the entry. The option attribute is consistent with the runtime. The specified value will be replaced and merged with the content of the runtime attribute.