Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Mar 28, 2020

Summary

Make sure all source modules' exports are used.

To achieve that, use eslint-plugin-import's no-unused-modules rule.

Also, explicitly import event/trigger.js from jquery.js; so far it was only
imported from ajax.js, making it mistakenly skipped in the
custom:slim,-deprecated build.

-5 bytes! :)

Checklist

@mgol mgol added this to the 4.0.0 milestone Mar 28, 2020
@mgol mgol self-assigned this Mar 28, 2020
To achieve that, use `eslint-plugin-import`'s `no-unused-modules` rule.

Also, explicitly import `event/trigger.js` from `jquery.js`; so far it was only
imported from ajax.js, making it mistakenly skipped in the
`custom:slim,-deprecated` build.
@mgol mgol force-pushed the no-unused-modules branch from 9db6dd3 to 12a06cf Compare May 5, 2020 12:34
@mgol mgol requested review from dmethvin and timmywil May 31, 2020 21:01
@mgol mgol added the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label May 31, 2020
@timmywil
Copy link
Member

timmywil commented Jun 1, 2020

So rhtml wasn't used anywhere? I guess that's an artifact from removing stuff for 4.0.

I wonder, tho, if we should leave parseXML's default export for those using the modules directly.

Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

Discussed in meeting. This is good to go.

@mgol mgol added Event and removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels Jun 2, 2020
@mgol mgol changed the title Build: Make sure all source modules' exports are used Build:Event: Make sure all source modules' exports are used Jun 2, 2020
@mgol mgol merged commit 40c3abd into jquery:master Jun 2, 2020
@mgol mgol deleted the no-unused-modules branch June 2, 2020 11:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

3 participants