🌐 AI搜索 & 代理 主页
Skip to content

Esbuild with --minify breaks bundling of transpiled file #4351

@anderson4j

Description

@anderson4j

In this project we build a worker file, that relies on methods from a large file transpiled (with TeaVM) from Java code. This has previously worked fine with esbuild and minification, but recent changes to the original Java code have caused the bundling to break, but only while using minification.

For a small sample that you can reproduce the issue in: clone this repo and run tester.js after building with the minification build script. See that it throws an error, but does not when building without minification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions