Babel plugin to generate traceable type for the-actions.
Issues related to the-actions should be reporter on the-actions
issue-tracker.
npm install --save-dev babel-plugin-actions
Run:
babel --plugins actions script.js
Or add the plugin to your .babelrc
configuration:
{
"plugins": [ "actions" ]
}
The plugin will compile the following code:
// actions.js
const UserAction = ActionCreator();
const OtherActions = {
Example: ActionCreator()
}
into:
// actions.js
const UserAction = ActionCreator("actions.js: UserAction");
const OtherActions = {
Example: ActionCreator("actions.js: OtherActions.Example")
}