-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[browser] Provide "single-file" deployment #86162
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsBundle all the files inside one JS or maybe .wasm as separate, but not 20 files.
|
It would be nice to have the option of bundling everything into a single distributable JS file, similar to OpenCV where the wasm and any dependencies are base64 encoded into a single file: https://docs.opencv.org/3.4/opencv.js The primary motivation is portability to non-.NET web applications. For example, I work for a medical software company where most of our on premises solutions are .NET (for example: https://radformation.com/autocontour/autocontour). We are interested in leveraging WebAssembly in order to bring medical image viewers originally written in C# to the browser. And so far, the results are really promising. It's just a bit of a pain to embed the C# into a page since you need to drop 20+ files into the webserver root and fetch at least 4:
Compared to OpenCV where we can start doing image contouring with a single dependency - It seems like most of the HTTP requests are coming from Download size is not an issue because for something like this - in most cases it would be downloaded once and then cached for subsequent page refreshes. So for this particular case I'm not really interested in building an "app" so much as I am interested in building a "library" that apps can use. For example, I would compile my |
Similar to
WasmSingleFileBundle
in wasi.Bundle all the files inside one JS or maybe .wasm as separate, but not 20 files.
Enable users to use 3rd party solutions like webpack.
Currently we use ES6 dynamic
import
in runtime code.In few places we disable webpack on it by
/* webpackIgnore: true */
, I'm not sure this is a problem.The text was updated successfully, but these errors were encountered: