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

Build: Auto-convert sources to AMD #4554

Merged
merged 1 commit into from Dec 9, 2019
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Nov 30, 2019

Summary

jQuery source has been migrated in gh-4541 from AMD to ES modules. To maintain
support for consumers of our AMD modules, this commits adds a task transpiling
the ES modules sources in src/ to AMD in amd/.

A "Load with AMD" checkbox was also restored to the QUnit setup. Note that,
contrary to jQuery 3.x, AMD files need to be generated via grunt amd or
grunt as sources are not authored in ECMAScript modules. To achieve a similar
no-compile experience during jQuery 4.x testing, use the new "Load as modules"
checkbox which works in all supported browsers except for IE & Edge (the legacy,
EdgeHTML-based one).

This was previously blocked by rollup/rollup#3258 but that issue has just been fixed.

Checklist

@mgol mgol added this to the 4.0.0 milestone Nov 30, 2019
@mgol mgol force-pushed the generated-amd branch 3 times, most recently from 728a260 to 60b66c3 Compare November 30, 2019 21:55
jQuery source has been migrated in jquerygh-4541 from AMD to ES modules. To maintain
support for consumers of our AMD modules, this commits adds a task transpiling
the ES modules sources in `src/` to AMD in `amd/`.

A "Load with AMD" checkbox was also restored to the QUnit setup. Note that,
contrary to jQuery 3.x, AMD files need to be generated via `grunt amd` or
`grunt` as sources are not authored in ECMAScript modules. To achieve a similar
no-compile experience during jQuery 4.x testing, use the new "Load as modules"
checkbox which works in all supported browsers except for IE & Edge (the legacy,
EdgeHTML-based one).
@mgol mgol removed the Needs review label Dec 9, 2019
@mgol mgol merged commit f37c2e5 into jquery:master Dec 9, 2019
@mgol mgol deleted the generated-amd branch December 9, 2019 19:00
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants