From 72bdf6b6a6dba150164c3813fa1049456b3dc17b Mon Sep 17 00:00:00 2001 From: Martin Broder Date: Fri, 7 Dec 2018 01:19:57 +0100 Subject: [PATCH] support cjs and esm version for browser builds --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4318f7a71..724e40e5a 100644 --- a/package.json +++ b/package.json @@ -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" + }, "unpkg": "lib/mobx.umd.min.js", "jsnext:main": "lib/mobx.module.js", "react-native": "lib/mobx.module.js", @@ -118,4 +122,4 @@ "/node_modules/" ] } -} \ No newline at end of file +}