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.
• new JavaScriptLooseModePlugin(config
)
Constructs new JavaScriptLooseModePlugin
.
Name | Type | Description |
---|---|---|
config |
JavaScriptLooseModePluginConfig |
Plugin configuration options. |
packages/repack/src/webpack/plugins/JavaScriptLooseModePlugin.ts:29
▸ apply(compiler
): void
Apply the plugin.
Name | Type | Description |
---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void
packages/repack/src/webpack/plugins/JavaScriptLooseModePlugin.ts:36