package
Wraps each component with your own error boundary component.
npm install babel-plugin-transform-react-error-boundaryGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 2 packages.
8.6 kB
Includes dependencies.
Wraps each component with your own error boundary component.
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'
} ]
]
}
}
}