Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assign the normalEvaluator per default #4548

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeroenBoersma
Copy link

Assigning the normal evaluator to theEvaluatorFunction means that it always needs to be exported.

CSP doesn't use the normalEvaluator and should not include it in any build. alpinsjs/src/index.js always assigns the normalEvaluator manually and works as expected, and it isn't included anymore in the csp builds.

  • normalEvaluator also needed dependencies for unsafe functions which we don't want to include in the csp build

Assigning the normal evaluator to theEvaluatorFunction means that it
always needs to be exported.

CSP doesn't use the normalEvaluator and should not include it in any
build. alpinsjs/src/index.js always assigns the normalEvaluator manually
and works as expected, and it isn't included anymore in the csp builds.

* normalEvaluator also needed dependencies for unsafe functions which we
  don't want to include in the csp build
Copy link
Contributor

@ekwoka ekwoka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it!

JeroenBoersma added a commit to JeroenBoersma/livewire that referenced this pull request Feb 24, 2025
* I forgot to redirect some alpinejs to @/alpine
* tested build on my alpinejs merge request alpinejs/alpine#4548
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.

2 participants