Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"path": "dist/mobx-react.js",
"path": "dist/mobx-react.umd.js",
"limit": "4 KB",
"webpack": false,
"running": false
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
"build": "yarn bundle && yarn copytypes && yarn makern",
"copytypes": "shx cp src/index.d.ts dist/mobx-react.d.ts",
"makern": "shx cp dist/mobx-react.module.js dist/mobx-react.rn.module.js && yarn replace \"react-dom\" \"react-native\" dist/mobx-react.rn.module.js --silent",
"bundle": "microbundle --jsx React.createElement --external mobx,react,react-dom,mobx-react-lite --globals react-dom=ReactDOM,react=React,mobx-react-lite=mobxReactLite --name mobxReact",
"bundle": "yarn bundle-cjs-and-es && yarn bundle-umd",
"bundle-cjs-and-es": "yarn bundle-via-microbundle --format cjs,es --no-compress",
"bundle-umd": "yarn bundle-via-microbundle --format umd --globals react-dom=ReactDOM,react=React,mobx-react-lite=mobxReactLite --name mobxReact",
"bundle-via-microbundle": "microbundle --jsx React.createElement --external mobx,react,react-dom,mobx-react-lite",
"watch": "jest --watch"
},
"author": "Michel Weststrate",
Expand Down