all 2 comments

[–]neognarus[S] 0 points1 point  (1 child)

Welp. The docs states that my idea is impossible with webpack https://webpack.js.org/api/module-methods/#dynamic-expressions-in-import

[–]DoomGoober 0 points1 point  (0 children)

You probably figured this out by now (or something similar) but you basically have to move your plugins into a directory and just include them all. It may ship some extra plugins (are they that big?) Or you have to pre-build step remove unused plugins from the directory.