In PageTriage/1166370 and MinervaNeue/1166782, to minimize the diff, a pretty awkward situation happened.
For example, see toolbar.js
Before:
const MWBot = require( 'mwbot' ); const Api = require( 'wdio-mediawiki/Api' );
After
import MWBot from 'mwbot'; import { mwbot } from 'wdio-mediawiki/Api.js';
import mwbot (with slight spelling difference) happens twice in the same file.
A solution is proposed in PageTriage/1167707. (Not merged at the moment of creating this task.)
Acceptance criteria:
- check how mwbot is imported in various repositories
- implement a solution that solves the problem of two import mwbot