Skip to content

Commit

Permalink
Rename bundles to both use .js extension
Browse files Browse the repository at this point in the history
The .mjs extension causes problems in several Webpack configurations,
including those used by create-react-app and gatsby. Using .js seems to avoid
those issues.
  • Loading branch information
bwrrp committed Feb 7, 2021
1 parent e30b563 commit 6eabd72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"Regex",
"Structure"
],
"main": "dist/whynot.js",
"module": "dist/whynot.mjs",
"main": "dist/whynot.umd.js",
"module": "dist/whynot.esm.js",
"types": "dist/whynot.d.ts",
"scripts": {
"build:clean": "rimraf dist && rimraf lib && rimraf temp",
Expand Down

0 comments on commit 6eabd72

Please sign in to comment.