1.0.0 • Published 8 years ago
babel-plugin-transform-react-error-boundary v1.0.0
babel-plugin-transform-react-error-boundary
Wraps each component with your own error boundary component.
Quick start
Install:
npm install --save-dev babel-plugin-transform-react-error-boundaryWebpack config example:
{
    test: /\.jsx?$/,
    exclude: /node_modules/,
    use: {
        loader: 'babel-loader',
        options: {
            cacheDirectory: IS_DEBUG,
            plugins: [
                [ 'babel-plugin-transform-react-error-boundary', {
                    ErrorBoundary: 'common/components/ErrorBoundary/index.js'
                } ]
            ]
        }
    }
}1.0.0
8 years ago