Skip to content

Conversation

@andersk
Copy link

@andersk andersk commented Nov 16, 2025

In a website with a Content-Security-Policy that does not allow unsafe-eval, the @messageformat/core compiler crashes with EvalError, and upstream has no plans to address that; they recommend pre-compiling all functions using a build step, or switching to intl-messageformat.

In a website with a Content-Security-Policy that does not allow
unsafe-eval, the @messageformat/core compiler crashes with EvalError,
and upstream has no plans to address that; they recommend
pre-compiling all functions using a build step, or switching to
intl-messageformat.

Fixes mashpie#545.

Signed-off-by: Anders Kaseorg <[email protected]>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.17%. Comparing base (fcb0781) to head (079fd7a).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #547   +/-   ##
=======================================
  Coverage   98.17%   98.17%           
=======================================
  Files           2        2           
  Lines         548      548           
=======================================
  Hits          538      538           
  Misses         10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

__mf crashes with EvalError under a restrictive Content-Security-Policy

2 participants