Skip to content

Commit

Permalink
Remove jsnext:main and add browser field in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Jun 30, 2018
1 parent 5f16a47 commit 1041e51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const store = createStore(

## Notes

- Middleware doesn't sync [Redux-persist](https://www.npmjs.com/package/redux-persist) actions (starting with `persist/` prefix)
- Middleware doesn't sync [Redux-persist](https://www.npmjs.com/package/redux-persist) actions (starting with `persist/` prefix) by puprose
- Errors, Functions and DOM nodes cannot be broadcasted. For more info read [MDN: The structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)

## Similar projects
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Sync redux state using BroadcastChannel",
"main": "dist/index.js",
"jsnext:main": "dist/index.es.js",
"browser": "dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/piotr-cz/redux-broadcast-middleware.git"
Expand Down
4 changes: 0 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export default {
{
format: 'cjs',
file: 'dist/index.js'
},
{
format: 'es',
file: 'dist/index.es.js'
}
]
}

0 comments on commit 1041e51

Please sign in to comment.