When I install the dependencies of the arcgis-js-api npm package, it installs 133MB of node_modules. When inspecting the contents of node_modules I discovered that there is a 15MB zip file in dojo-util/buildscripts (the entire buildscripts folder is over 20MB). There are are also 13MB of .jar files which seem to be useful for build time and 12MB of .html files and 11MB of .jpg files that are used almost exclusively for tests of the dojo*/dijit packages.
When looking at the package.json file for arcgis-js-api, none of the dependencies are devDependencies. To reduce bundle size for applications that depend on arcgis-js-api, is it possible to move any dependencies to devDependencies? Furthermore, for packages that cannot be moved, is it possible to remove the tests and other non-runtime code from ESRI's forks of the dojo*/dijit packages that the arcgis-js-api depends on?