Skip to content

Commit

Permalink
Try defining exports
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed May 7, 2024
1 parent 319f131 commit 6bfbcbc
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions packages/webamp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,64 @@
"source": "demo/index.html"
}
},
"exports": {
".": {
"require": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.js"
},
"import": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.js"
},
"default": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.js"
}
},
"./min": {
"require": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.min.js"
},
"import": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.min.js"
},
"default": {
"types": "./built/types/js/webamp.d.ts",
"default": "./built/webamp.bundle.min.js"
}
},
"./lazy": {
"require": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.js"
},
"import": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.js"
},
"default": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.js"
}
},
"./lazy/min": {
"require": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.min.js"
},
"import": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.min.js"
},
"default": {
"types": "./built/types/js/webampLazy.d.ts",
"default": "./built/webamp.lazy-bundle.min.js"
}
}
},
"webamp-browser": "built/webamp.bundle.js",
"webamp-browser-min": "built/webamp.bundle.min.js",
"webamp-lazy-browser": "built/webamp.lazy-bundle.js",
Expand Down

0 comments on commit 6bfbcbc

Please sign in to comment.