Skip to content

Commit

Permalink
fix(cjs): conditional export
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Dec 21, 2021
1 parent 30163cc commit 5f4e0fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"version": "2.0.0-beta.4",
"description": "A 3D Vector lib including arithmetic operator overloading (+ - * / % **).",
"type": "module",
"main": "build/esm/index.mjs",
"module": "build/esm/index.mjs",
"main": "./build/cjs/index.cjs",
"exports": {
".": {
"require": "./build/cjs/index.cjs",
"default": "./build/esm/index.mjs"
}
},
"module": "./build/esm/index.mjs",
"directories": {
"build": "build"
},
Expand Down

0 comments on commit 5f4e0fb

Please sign in to comment.