Skip to content

Commit

Permalink
Set up conditional imports for cjs and esm
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Aug 16, 2023
1 parent 95f0fe7 commit bff5292
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
"bugs": {
"url": "https://github.com/hlysine/readable-regexp/issues"
},
"main": "dist/readable-regexp.umd.js",
"module": "dist/readable-regexp.mjs",
"typings": "dist/readable-regexp.d.ts",
"main": "./dist/readable-regexp.umd.js",
"module": "./dist/readable-regexp.mjs",
"typings": "./dist/readable-regexp.d.ts",
"exports": {
".": {
"require": "./dist/readable-regexp.umd.js",
"import": "./dist/readable-regexp.mjs",
"types": "./dist/readable-regexp.d.ts"
}
},
"files": [
"dist"
],
Expand Down

0 comments on commit bff5292

Please sign in to comment.