Previously: T326692
Now that Popups supports extensibility and has clearly defined stable APIs it would make sense to move reference previews to its own extension - the Cite extension.
TODO
- Make a decision around whether Webpack should be added to Cite extension or whether the code should be rewritten in ES6-compatible way. Rewrite code if necessary
- Move module off of Webpack https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Popups/+/995292/1
- Prepare module for moving to Cite https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Popups/+/995312
- Add new module to Cite. If the module is called ext.cite.referencePreviews, Popups will know to check for it and disable its code when it exists.
- Define PopupPlugins attribute in Cite extension rather than Popups, pointing to the new module ext.cite.referencePreviews
- Delete old module in Popups once we're sure we no longer need it.
- Clean up configuration, messages, and styles which include hardcoded "Popups" identifiers.