Class: JavaScriptLooseModePlugin
plugins.JavaScriptLooseModePlugin
Enable JavaScript loose mode, by removing use strict
directives from the code.
This plugin should only be used for compatibility reasons with Metro, where some libraries
might not work in JavaScript Strict mode.
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new JavaScriptLooseModePlugin(config
)
Constructs new JavaScriptLooseModePlugin
.
Parameters
Name | Type | Description |
---|---|---|
config | JavaScriptLooseModePluginConfig | Plugin configuration options. |
Defined in
packages/repack/src/webpack/plugins/JavaScriptLooseModePlugin.ts:29
Methods
apply
▸ apply(compiler
): void
Apply the plugin.
Parameters
Name | Type | Description |
---|---|---|
compiler | Compiler | Webpack compiler instance. |
Returns
void
Implementation of
Defined in
packages/repack/src/webpack/plugins/JavaScriptLooseModePlugin.ts:36