Skip to content

Missing import when lazy barrel is enabled #9691

Description

@shulaoda

Discussed in #9687

Originally posted by Desuuuu June 9, 2026
When using lazy barrel with version 4.7.7 of @smithy/node-http-handler (used by the AWS SDK packages), rolldown seems to be dropping an import from node:http2.

Here's a minimal reproduction: https://github.com/Desuuuu/rolldown-lazybarrel-issue

This fails with the following error:

> node ./dist/index.js

file://dist/index.js:18823
        ({constants} = node_http2);
        ^

ReferenceError: node_http2 is not defined

I'm not sure if the issue comes from rolldown or from @smithy/node-http-handler since the issue only started appearing since their latest release (I would guess this change specifically).

Metadata

Metadata

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions