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

Enabling ES6 for ResourceLoader validation #5

Merged
merged 4 commits into from
Jan 18, 2024
Merged

Enabling ES6 for ResourceLoader validation #5

merged 4 commits into from
Jan 18, 2024

Conversation

KilMer56
Copy link
Contributor

Description

This enables the loading of ES6 scripts using the resource loader by overriding the current script validation with the new one developed by MediaWiki.
It is a duplicate of the new MediaWiki version and uses Peast for the script validation.

Testing

Tested on my dev environment using script from Lua Modules and some tests using arrow functions (proper to ES6)

Notes

The composer.local.json must be updated to consider this new dependency (peast) to work.

@KilMer56 KilMer56 self-assigned this Jan 18, 2024
Copy link
Contributor

@Rathoz Rathoz left a comment

Choose a reason for hiding this comment

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

LGTM

@notr1ch notr1ch merged commit 7e1eaf3 into master Jan 18, 2024
4 checks passed
@FO-nTTaX FO-nTTaX deleted the es6-enabling branch January 18, 2024 17:26
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.

4 participants