Skip to content

@rollup/plugin-terser hangs the process forever after completion when rollup is run in a worker thread #1482

@dumbmatter

Description

@dumbmatter

Expected Behavior

When the build completes, the process should terminate, even if rollup is being run inside a Node.js worker thread.

Actual Behavior

When using @rollup/plugin-terser 0.4.x and running rollup inside a Node.js worker thread, the build does complete successfully, but the Node.js process never terminates.

Prior versions of @rollup/plugin-terser such as 0.3.0 did not have this problem, and running the same rollup build in the main process (rather than using a worker thread) also works fine even with @rollup/plugin-terser 0.4.x.

Additional Information

This is very likely related to #1409 since that was the only PR merged between versions 0.3.0 and 0.4.0, and it's also related to worker threads.

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