From 4b6fb9b81582adfa710fb23187735fe712a80f79 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Mon, 14 Aug 2017 09:58:48 +1000 Subject: [PATCH 1/2] Rename ESM output to .mjs --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index ffcf9a1af..f17d8b08b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -100,7 +100,7 @@ function build() { generateBundledModule( path.resolve(".build.es", "mobx.js"), - path.resolve("lib", "mobx.module.js"), + path.resolve("lib", "mobx.mjs"), "es" ) ]).then(() => { From 3da0318f60b3d4f081dc36b33f02cd79dc784ffb Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Fri, 1 Sep 2017 14:10:22 +0200 Subject: [PATCH 2/2] point package.json `module` to the correct mjs file --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 770ae75bb..5a472c1e0 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Simple, scalable state management.", "main": "lib/mobx.js", "umd:main": "lib/mobx.umd.js", - "module": "lib/mobx.module.js", + "module": "lib/mobx.mjs", "typings": "lib/mobx.d.ts", "scripts": { "prettier": "prettier --write --print-width 100 --tab-width 4 --no-semi \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.ts\"",