Skip to content

Commit

Permalink
fix: remove .cjs extension in favor of .js
Browse files Browse the repository at this point in the history
`microbundle` only produces the `.cjs` extension if the top-level package uses `"type": "module"`

This was working locally for me only because my `dist` folder has a version generated from trying to swap that but giving up. Thus, CI failed but local testing passed.
  • Loading branch information
alexlafroscia committed Nov 29, 2021
1 parent 6b0185f commit e1effd3
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 @@ -4,10 +4,10 @@
"description": "Verify testdouble stubs with QUnit",
"source": "./src/index.ts",
"exports": {
"require": "./dist/index.cjs",
"require": "./dist/index.js",
"default": "./dist/index.modern.js"
},
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.module.js",
"unpkg": "./dist/index.umd.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit e1effd3

Please sign in to comment.