Skip to content

Commit

Permalink
Merge pull request #135 from developit/no-mjs
Browse files Browse the repository at this point in the history
Switch from .mjs to .module.js
  • Loading branch information
developit authored Sep 29, 2020
2 parents 21a15bf + 453bc11 commit 7d00e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion polyfill/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "unfetch-polyfill",
"main": "index.js",
"module": "polyfill.mjs"
"module": "polyfill.module.js"
}

0 comments on commit 7d00e05

Please sign in to comment.