From 42298ef2b21e744ac3553931561d13e4acdf4678 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 18 Sep 2017 20:14:59 +0200 Subject: [PATCH 1/2] Revert "Rename ESM output to .mjs" --- package.json | 2 +- scripts/build.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a472c1e0..770ae75bb 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.mjs", + "module": "lib/mobx.module.js", "typings": "lib/mobx.d.ts", "scripts": { "prettier": "prettier --write --print-width 100 --tab-width 4 --no-semi \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.ts\"", diff --git a/scripts/build.js b/scripts/build.js index f17d8b08b..ffcf9a1af 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.mjs"), + path.resolve("lib", "mobx.module.js"), "es" ) ]).then(() => { From 5e0fa410ee3b92865cacdef6cd4851d58021362e Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 18 Sep 2017 20:16:00 +0200 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c39fb93d..2b46f0584 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ # 3.3.0 * Undeprecated `transaction`, see [#1139](https://github.com/mobxjs/mobx/issues/1139) -* Use `.mjs` extension for module build [1131](https://github.com/mobxjs/mobx/issues/1131) * Fixed typings of reaction [#1136](https://github.com/mobxjs/mobx/issues/1136) * It is now possible to re-define a computed property [#1121](https://github.com/mobxjs/mobx/issues/1121) * Print an helpful error message when using `@action` on a getter [#971](https://github.com/mobxjs/mobx/issues/971)