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

[Discussion] Compatibility with bundlers #4361

Open
ryanking13 opened this issue Jan 5, 2024 · 0 comments
Open

[Discussion] Compatibility with bundlers #4361

ryanking13 opened this issue Jan 5, 2024 · 0 comments

Comments

@ryanking13
Copy link
Member

There are few questions / issues about using Pyodide with bundlers like Webpack or Rollup or Vite.
Or more generally, people often ask "How can I use Pyodide in X?", where X can be React, Vue.js, React Native, Percel, etc.

This issue is to discuss how we will address such questions in the future.

In a prior discussion about webpack (#4294), @mneil mentioned that

My opinion is that the library should not make any assumptions about how it will be consumed.
Users choosing to bundle with webpack need to understand the implications of choosing that tool and how to work with it.
Rollup, Turbopack, esbuild, Webpack, and other tools exist to do the same thing.
I'm not sure pyodide should attempt to do anything specifically for one or more of these tools.

And I totally agree with this.

So I think what we should do is to

  1. Encourage users who are familiar with those bundlers to make tools / plugins that make it easier to use Pyodide with those bundlers.
  2. We need to make it easier for users to find those tools / plugins, by adding documentations and actively mentioning them in the issue tracker.

For those who came here to find out how to use Pyodide with bundlers, here are some links to existing tools / plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant