emscripten-core / emscripten-core/emscripten

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

Open
#12,347 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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 https://github.com/emscripten-core/emscripten/issues/12074#issuecomment-699181317

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.