Closed mrlika closed 5 days ago
Description
Use p2pml:core-as-bundle custom conditional export to export p2p-media-loaer-core as a bundle with all the its dependencies included.
p2pml:core-as-bundle
p2p-media-loaer-core
It may help those who don't want to mess with bittorent-tracker/client dependencies and node-polyfills.
bittorent-tracker/client
Examples
Vite:
export default defineConfig({ plugins: [ //nodePolyfills(), react(), ], resolve: { conditions: ['p2pml:core-as-bundle'], }, });
Node.js, webpack, Rollup: https://webpack.js.org/guides/package-exports/#conditions-custom
esbuild: https://esbuild.github.io/api/#conditions
Comments
Additionally, all the dependencies are updated to the latest ones.
Description
Use
p2pml:core-as-bundle
custom conditional export to exportp2p-media-loaer-core
as a bundle with all the its dependencies included.It may help those who don't want to mess with
bittorent-tracker/client
dependencies and node-polyfills.Examples
Vite:
Node.js, webpack, Rollup: https://webpack.js.org/guides/package-exports/#conditions-custom
esbuild: https://esbuild.github.io/api/#conditions
Comments
Additionally, all the dependencies are updated to the latest ones.