emscripten-core / emscripten-core/emscripten

Add a new compiler setting that tells the JS build output to expect that the `locateFile` module hook will be used

Open
#21,927 17 comments 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

This is an enhancement request.

I think this setting would reduce unnecessary JS code and complexity in the output that's left unused when `locateFile` is defined on the Module.

Perhaps it could be called `USE_LOCATE_FILE`, and a runtime error would be expected if `locateFile` was not defined.

/cc @RReverser

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.