Import all modes at once

What’s the best way to import every mode?

I’m using ES6 imports and there doesn’t seem to be an option to.

Writing out every import seems cumbersome:

import 'codemirror/mode/apl/apl';
import 'codemirror/mode/asciiarmor/asciiarmor';
import 'codemirror/mode/asn.1/asn.1';
import 'codemirror/mode/asterisk/asterisk';

There’s no way to do this, except the way you show (which I guess you could automate with a script). It is usually more practical to load modes on-demand.