-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
WebAssembly Support #34
Comments
You know, support for different file types besides just js should probably be discussed. This might be a major infrastructure change and decision that this library might want to make now. We're already talking about supporting at least ts files here: #3 |
And I am pleased to find out that this was already thought of, and parcel is file-type agnostic. Perfect. Then, let's support C/C++/Rust/wasm files. How do we do this? |
Yep totally want to support wasm. I did some initial experiments with this a while ago, and it should be pretty easy. I think WASM should definitely be supported in parcel core. Less sure about languages that compile to WASM like Rust since they usually depend on large toolchains, but perhaps it could work assuming installation instructions are documented well. |
I can take a look at the implementation of rust, but yes, I agree with @devongovett, this shouldn't come out of the box, maybe a plugin? |
@albizures I think you misread/miss-interpreted what Devon said. He said that it should be part of parcel core! Parcel is trying to stay away from plugins, and trying to add all essential stuff directly to the core, to avoid the configuration mess of other tools like webpack. |
@davidnagli 👍, I already made some progress but I have some problems... I already upload it and I created the PR although it is not completed, maybe someone has an idea :) PR: #312 |
Progress: just merged #312 into the I think we should go for a few milestones here.
See also, my comment here about some details. |
hey @devongovett, responding your points:
also, I already tried with |
Cool, I've been working on This also involves some changes to allow registering custom bundle loaders for dynamic imports, e.g. extracting the existing support for JS and CSS, and adding a WASM file loader. So you'll be able to
Yeah, I realized that it isn't even possible to do what I wanted in the WASM format for now. A r.e. |
😲 this sounds really cool!
yes, good idea! maybe even a json output 🤷♂️ |
See here: #473 |
Done in v1.5.0! |
Restore tree shaking Approved-by: Maia Teegarden
It would be amazing to support WASM, so that C/C++/Rust and eventually many other languages could be automatically supported. Webpack is already working on this, and I've been working on it too here: https://github.com/lastmjs/zwitterion
I already have initial support for including basic C and C++ files, and WASM is now or will be ES module integratable.
It's possible and it would be awesome for this project to provide support.
The text was updated successfully, but these errors were encountered: