0.1.0-alpha.14 • Published 2 years ago
@react-unforget/babel-plugin v0.1.0-alpha.14
@react-unforget/babel-plugin
To use the babel plugin, you need to install it and add it to your Babel configuration.
npm install --save-dev @react-unforget/babel-pluginThen, add it to your Babel configuration. For example, in your .babelrc:
{
"plugins": ["@react-unforget/babel-plugin"]
}Options
The babel plugin accepts a few options:
throwOnFailure(default:false): Iftrue, the plugin will throw an error if it fails to analyze the component / hook.skipComponents(default:[]): An array of component names to skip. For example,["MyComponent"].skipComponentsWithMutation(default:false): Iftrue, the plugin will skip components that have variables that are mutated e.g.array.push()or variable re-assignment. This is configurable because despite thorough testing, we are still not 100% sure that this is safe to do in all cases.
0.1.0-alpha.14
2 years ago
0.1.0-dev.12
2 years ago
0.1.0-dev.11
2 years ago
0.1.0-dev.10
2 years ago
0.1.0-alpha.13
2 years ago
0.1.0-dev.9
2 years ago
0.1.0-dev.8
2 years ago
0.1.0-dev.7
2 years ago
0.1.0-dev.6
2 years ago
0.1.0-dev.5
2 years ago
0.1.0-dev.4
2 years ago