Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional bundle export in p2p-media-loader-core #443

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

mrlika
Copy link
Member

@mrlika mrlika commented Nov 22, 2024

Description

Use p2pml:core-as-bundle custom conditional export to export p2p-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:

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.

@mrlika mrlika merged commit 88159c1 into main Nov 22, 2024
3 checks passed
@mrlika mrlika deleted the feat/conditional-bundle-export branch November 22, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant