Skip to content

Args to make js non-minified, while using full optimization (small wasm size) #25367

@softmarshmallow

Description

@softmarshmallow

Why?

My build pipeline requires the .js file to be present on CI, where emscripten is not installed, which the .js must be included in git. This is a production env, where as the .wasm is loaded from npm jsdeliver), but the js is required to be included, so it can build that as local dependency while building web app.

meaning, it needs full optimization, but without js minifcation (to reduce git diff on each build)
currently, only reliable way to do this is by setting -O0, which increases the wasm size as well.

Is there a reliable way to configure only js minification to be disabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions