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\"", 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(() => {