Skip to content

Commit

Permalink
support cjs and esm version for browser builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnbroder authored Dec 7, 2018
1 parent d55c50a commit 72bdf6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"main": "lib/mobx.js",
"umd:main": "lib/mobx.umd.js",
"module": "lib/mobx.module.js",
"browser": {
"./lib/mobx.js": "./lib/mobx.js",
"./lib/mobx.module.js": "./lib/mobx.module.js"
},

This comment has been minimized.

Copy link
@benjamn

benjamn Jan 10, 2019

What's the point of these self-referential browser replacements? Shouldn't this have no effect?

"unpkg": "lib/mobx.umd.min.js",
"jsnext:main": "lib/mobx.module.js",
"react-native": "lib/mobx.module.js",
Expand Down Expand Up @@ -118,4 +122,4 @@
"<rootDir>/node_modules/"
]
}
}
}

0 comments on commit 72bdf6b

Please sign in to comment.