Skip to content

Commit

Permalink
fix: update exports mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Nov 23, 2022
1 parent 8ed87f7 commit b0fec27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EventEmitter from './index.js'

export { EventEmitter }
export default EventEmitter
export default EventEmitter
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@
"name": "eventemitter3",
"version": "4.0.7",
"description": "EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.",
"main": "index.js",
"exports": {
"import": "./index.mjs",
"require": "./index.js"
".": {
"import": "./index.mjs",
"require": "./index.js",
"types": "./index.d.ts"
},
"./umd/eventemitter3.js": {
"import": "./umd/eventemitter3.js",
"require": "./umd/eventemitter3.js",
"types": "./index.d.ts"
},
"./package.json": "./package.json"
},
"typings": "index.d.ts",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"browserify": "rimraf -rf umd && mkdir umd && browserify index.js -s EventEmitter3 -o umd/eventemitter3.js",
"minify": "uglifyjs umd/eventemitter3.js --source-map -cm -o umd/eventemitter3.min.js",
Expand Down

0 comments on commit b0fec27

Please sign in to comment.