On this page

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

new PlatformPlugin(platform): void

Creates an instance of PlatformPlugin.

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

Applies the plugin by registering its hooks on the compiler.