Babel plugin (v1.2.0, latest) that enhances redux-saga error messages by adding file location metadata to generator functions and effects. During transpilation, it attaches '@@redux-saga/LOCATION' properties to sagas and call/yield expressions, enabling developer tools to display source file, line number, and code snippet in error traces. Key differentiator: zero runtime overhead since it's a compile-time transform. Still in beta (not recommended for production). Works with Babel 6/7 and redux-saga ^1.0.0-rc.0. Does not support React Native. Inactive development since 2020.
npm install babel-plugin-redux-sagaVerified import paths — ran on the pinned version, not inferred.
Shows installation, Babel plugin configuration, and the resulting enhanced error trace with file locations.
Migrate to redux-saga's native error handling or use source maps instead.
Avoid using in production builds. Consider testing thoroughly before deploying.
Do not use this plugin in React Native projects. Use alternative debugging tools.
Enable source maps in your build tool (e.g., webpack devtool) to maintain debuggable output.
Run: npm install --save-dev babel-plugin-redux-saga
Ensure the plugin name is exactly 'babel-plugin-redux-saga' in the plugins array.
Do not use this plugin in React Native projects. Remove it from your Babel config when building for React Native.