Skip to content

Commit

Permalink
chore: add bundle files as exportable asset (#682)
Browse files Browse the repository at this point in the history
This restores the possibility to import the bundle directly, without
getting the following error:
    
> [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/engine.io.min.js' is not defined by "exports"
  • Loading branch information
exsilium committed Nov 14, 2021
1 parent 2793628 commit 8de51c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"module": "./build/esm/index.js",
"exports": {
"./package.json": "./package.json",
"./dist/engine.io.esm.min.js": "./dist/engine.io.esm.min.js",
"./dist/engine.io.js": "./dist/engine.io.js",
"./dist/engine.io.min.js": "./dist/engine.io.min.js",
".": {
"import": {
"node": "./build/esm-debug/index.js",
Expand Down

0 comments on commit 8de51c3

Please sign in to comment.