babel-plugin-transform-react-error-boundary

1.0.0 • Public • Published

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-boundary

Webpack 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'
                } ]
            ]
        }
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-transform-react-error-boundary

Weekly Downloads

0

Version

1.0.0

License

WTFPL

Unpacked Size

8.77 kB

Total Files

18

Last publish

Collaborators

  • vodkabears