Skip to content

Rebuild the form bundle without direct eval - #128

Merged
aerni merged 1 commit into
mainfrom
fix/form-bundle-eval
Nov 2, 2026
Merged

aerni merged 1 commit into
mainfrom
fix/form-bundle-eval

Conversation

@aerni

@aerni aerni commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Statamic 6.35 compares field conditions without eval. Our published form.js was built before that, so bundling it still triggered Rolldown's direct eval warning.

This rebuilds form.js against the current checker and passes the field handle to showField, which that version requires. lodash-es is a dev dependency because the checker imports it at build time. Sites do not need to upgrade Statamic.

Test plan

  • Bundle form.js with Vite 8 and confirm the direct eval warning is gone
  • Confirm a conditional field still shows and hides as its condition changes

Statamic 6.35 compares field conditions without eval, but the published bundle was built before that and still warned when sites bundled it.
@aerni
aerni merged commit 1bbc1fb into main Nov 2, 2026
25 checks passed
@aerni
aerni deleted the fix/form-bundle-eval branch November 2, 2026 10:05
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