The main idea - don't keep JS files which belong to some NPM packages in a module repository?
Maybe someone have some solution of thoughts.
I've added NPM packages to my theme.
The packages are installed in the
vendor/theme dir/node_modules & then i've symlinked node_modules to