On this page

Should be used only for "target === false" or when you want to overwrite platform target properties

new PlatformPlugin(platform): PlatformPlugin
Attributes
platform:Partial<PlatformTargetProperties>
target properties

Creates an instance of PlatformPlugin.

Attributes
platform:Partial<PlatformTargetProperties>
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.