Package Exports
- javascript-obfuscator-metro-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (javascript-obfuscator-metro-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Javascript Obfuscator Metro Plugin
This metro plugin protects your React Native bundle using javascriptobfuscator.com.
Usage
Include the plugin in your metro.config.js
:
const jsoMetroPlugin = require('javascript-obfuscator-metro-plugin')(
{
APIKey: undefined, /* required */
APIPwd: undefined, /* required */
Name: 'My Project', /* optional */
KeepComment: false, /* optional */
EncodeStrings: false, /* optional */
MoveStrings: true, /* optional */
ReplaceNames: true, /* optional */
RenameGlobals: true, /* optional */
DeepObfuscate: true, /* optional */
ReorderCode: true, /* optional */
MoveMembers: true, /* optional */
RenameMembers: true, /* optional */
OptimizationMode: 'Auto', /* optional */
},
{
runInDev: false, /* optional */
}
);
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
...jsoMetroPlugin
};
For configuration docs see: https://service.javascriptobfuscator.com/httpapi.asmx?op=JSOExecute and https://javascriptobfuscator.com/docs/