From f321635bf7ee03d0d2fce4fdfa69643c2138f215 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 18 Feb 2020 10:51:02 -0500 Subject: [PATCH 1/2] Switch from .mjs to .module.js --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7e2ffdb..760273f 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "description": "Bare minimum fetch polyfill in 500 bytes", "unpkg": "polyfill/index.js", "main": "dist/unfetch.js", - "module": "dist/unfetch.mjs", - "jsnext:main": "dist/unfetch.mjs", + "module": "dist/unfetch.module.js", + "jsnext:main": "dist/unfetch.module.js", "umd:main": "dist/unfetch.umd.js", "scripts": { "test": "eslint src test && jest", - "build": "microbundle src/index.mjs && microbundle -f cjs polyfill/polyfill.mjs -o polyfill/index.js --no-sourcemap && cp dist/unfetch.mjs dist/unfetch.es.js", + "build": "microbundle src/index.mjs && microbundle -f cjs polyfill/polyfill.mjs -o polyfill/index.js --no-sourcemap && cp dist/unfetch.module.js dist/unfetch.es.js", "prepare": "npm run -s build", "release": "cross-var npm run build -s && cross-var git commit -am $npm_package_version && cross-var git tag $npm_package_version && git push && git push --tags && npm publish" }, From db3b56b60e49eebba738833d40c8635b7fe0f817 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 18 Feb 2020 10:51:57 -0500 Subject: [PATCH 2/2] Update package.json --- polyfill/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyfill/package.json b/polyfill/package.json index edcbbda..9811fbc 100644 --- a/polyfill/package.json +++ b/polyfill/package.json @@ -1,5 +1,5 @@ { "name": "unfetch-polyfill", "main": "index.js", - "module": "polyfill.mjs" + "module": "polyfill.module.js" }