Skip to content

Commit 2c99f6e

Browse files
committed
Fixed NPM dist
1 parent eb792e7 commit 2c99f6e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "react-error-boundary",
3-
"version": "0.0.1",
3+
"version": "0.0.4",
44
"description": "Simple reusable React error boundary component",
5+
"files": [
6+
"dist"
7+
],
58
"main": "dist/commonjs/index.js",
69
"scripts": {
710
"build": "npm run build:commonjs && npm run build:es && npm run build:umd",

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
/** @flow */
22

3-
export default from './ErrorBoundary';
3+
import ErrorBoundaryFallbackComponent from './ErrorBoundaryFallbackComponent';
4+
import ErrorBoundary from './ErrorBoundary';
5+
6+
export default ErrorBoundary;
7+
export {ErrorBoundary, ErrorBoundaryFallbackComponent};

0 commit comments

Comments
 (0)