Skip to content

fix(theming): prevent reference errors on CJS require call#645

Merged
blvdmitry merged 1 commit into
reshaped-ui:canaryfrom
pascalduez:hotfix/theming/cli-esm
Jul 1, 2026
Merged

fix(theming): prevent reference errors on CJS require call#645
blvdmitry merged 1 commit into
reshaped-ui:canaryfrom
pascalduez:hotfix/theming/cli-esm

Conversation

@pascalduez

Copy link
Copy Markdown
Contributor

Summary

Calling commonjs require in an ES modules produce a reference error.

Related Issue

Fixes #644

Notes for Reviewers

Went the "simplest" path with createRequire. We could also use a dynamic import() but that would produce more changes (async).

@blvdmitry blvdmitry merged commit 8acb35b into reshaped-ui:canary Jul 1, 2026
12 checks passed
@blvdmitry

Copy link
Copy Markdown
Contributor

Thanks 🙌

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.

[theming] cli/run.js Reference Error

2 participants