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

Loading data packages into MODULARIZE'd modules dynamically without --pre-js #12347

Open
Tracked by #14385
vadimkantorov opened this issue Sep 26, 2020 · 1 comment
Open
Tracked by #14385

Comments

@vadimkantorov
Copy link

vadimkantorov commented Sep 26, 2020

Currently it's very hacky to do this, since data packages rely on global objects Module and LZ4.

I managed to hack this around, but I think this is a useful feature and should be supported natively.

Original context in #12074 (comment)

My workaround is at: https://github.com/busytex/busytex/blob/master/busytex_pipeline.js#L23 https://github.com/busytex/busytex/blob/master/busytex_pipeline.js#L106

@vadimkantorov
Copy link
Author

vadimkantorov commented Sep 26, 2020

It would also be nice if there was a unified way of creating/loading traditional packages that embed the data and "virtual" packages that redirect file access to URLs. Currently this is possible, but it is not easy to switch from one to the other. It could be a mode for file_packager.py or a tool with a similar interface.

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

No branches or pull requests

1 participant