Skip to content

Commit

Permalink
Conditional bundle export in p2p-media-loader-core
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlika committed Nov 22, 2024
1 parent dab746b commit d612c36
Show file tree
Hide file tree
Showing 5 changed files with 491 additions and 481 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"create-doc": "pnpm typedoc"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.16.1",
"@eslint-react/eslint-plugin": "^1.17.0",
"@types/eslint__js": "^8.42.3",
"eslint": "^9.14.0",
"eslint": "^9.15.0",
"eslint-plugin-import": "^2.31.0",
"globals": "^15.12.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typedoc": "^0.26.11",
"typedoc-material-theme": "^1.1.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"typescript-eslint": "^8.15.0",
"vite": "^5.4.11"
}
}
7 changes: 6 additions & 1 deletion packages/p2p-media-loader-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
"exports": "./src/index.ts",
"types": "./src/index.ts",
"publishConfig": {
"exports": "./lib/index.js",
"exports": {
".": {
"p2pml:core-as-bundle": "./dist/p2p-media-loader-core.es.js",
"import": "./lib/index.js"
}
},
"types": "./lib/index.d.ts"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/p2p-media-loader-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"p2p-media-loader-hlsjs": "workspace:*",
"p2p-media-loader-shaka": "workspace:*",
"plyr": "^3.7.8",
"shaka-player": "^4.12.0"
"shaka-player": "^4.12.2"
},
"devDependencies": {
"@types/d3": "^7.4.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/p2p-media-loader-shaka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"shaka-player": "^4.12.0"
"shaka-player": "^4.12.2"
}
}
Loading

0 comments on commit d612c36

Please sign in to comment.