Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Core: Support the jQuery slim build#346

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mgol merged 1 commit intojquery:masterfrommgol:jquery-slim
May 4, 2020
Merged

Conversation

mgol
Copy link
Member

@mgolmgol commentedMay 3, 2020

While it'd be hard for Migrate to support all the possible jQuery builds,
the slim build is special as it's officially maintained by the jQuery team,
published to npm & uploaded to CDNs.

This commit adds support for the jQuery slim build in jQuery 3.0.0 & newer.
The slim build is now tested next to the regular one.

Fixes#345

While it'd be hard for Migrate to support all the possible jQuery builds,the slim build is special as it's officially maintained by the jQuery team,published to npm & uploaded to CDNs.This commit adds support for the jQuery slim build in jQuery 3.0.0 & newer.The slim build is now tested next to the regular one.Fixesjquery#345
@mgolmgol requested a review fromdmethvinMay 3, 2020 22:24
@mgol
Copy link
MemberAuthor

mgol commentedMay 3, 2020

Note that this currently doesn't pass slim builds with jQuery master because apparently the.show() &.hide() methods are erroneously excluded from it - because they were just imported in the effects module and the new Rollup-based build system follows the module dependency graph when excluding modules. I'll submit an issue to jQuery; this PR helped me found a bug there!

This issue shouldn't block us from landing this PR, though - slim tests are isolated so it's easy to see the regular ones worked. Also, jQuery 4.x is not out yet and all tests pass with both full & slim builds for all tested jQuery 3.x builds.

@mgolmgol added this to the3.3.0 milestoneMay 3, 2020
@mgolmgol mentioned this pull requestMay 3, 2020
Copy link
Member

@dmethvindmethvin left a comment

Choose a reason for hiding this comment

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

Seems pretty straightforward. I wonder how commonly the slim build is used?

@mgol
Copy link
MemberAuthor

mgol commentedMay 4, 2020

@dmethvin It's hard to tell, especially that 3.x itself is still way less popular than 1.x/2.x. But I've seen enough people trying it in various places on GitHub, including it in bug reports, etc. that I think it may be more popular than we'd think! Many projects already include a Promise polyfill & they have their own AJAX library, the slim build makes a lot of sense then.

@mgolmgol changed the titleCore: Support jQuery slim buildCore: Support the jQuery slim buildMay 4, 2020
@mgolmgol merged commitea0fc04 intojquery:masterMay 4, 2020
@mgolmgol deleted the jquery-slim branchMay 4, 2020 08:22
mgol added a commit to jquery/jquery that referenced this pull requestMay 5, 2020
The `show()`, `hide()` & `toggle()` methods were included in the 3.x jQueryslim build. The jQuery master build accidentally started to exclude them asthey were only imported in the effects module and the new Rollup-based buildsystem follows the module dependency graph when excluding modules.To resolve the issue, import the `css/showHide.js` file directly in the main`jquery.js` file.Closesgh-4704Refjquery/jquery-migrate#346
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dmethvindmethvindmethvin approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
3.3.0
Development

Successfully merging this pull request may close these issues.

Support the jQuery slim build
2 participants
@mgol@dmethvin

[8]ページ先頭

©2009-2025 Movatter.jp