Skip to content

fix Handlebars default import interop#1101

Merged
crazy-max merged 1 commit intodocker:mainfrom
crazy-max:fix-imports
Apr 27, 2026
Merged

fix Handlebars default import interop#1101
crazy-max merged 1 commit intodocker:mainfrom
crazy-max:fix-imports

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max commented Apr 27, 2026

The Handlebars imports now use the package default export instead of a namespace import, which matches how the CommonJS package is exposed to emitted ESM code.

Tested with:

yarn build
node --input-type=module -e "import {Util} from './lib/util.js'; console.log(Util.compileHandlebars('{{name}}', {}, {name: 'docker'}))"

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max merged commit 578e9d9 into docker:main Apr 27, 2026
117 checks passed
@crazy-max crazy-max deleted the fix-imports branch April 27, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant