main in package.json was pointing to the uncompiled files in lib/index.js. So when this package was installed with npm and required, it required compilation of everything in the src file. For example, it required babel-polyfill, axios, glsl files and other things that aren't really part of this library.
This change tells applications who require keras-js to load the already compiled files.
I think maybe there was a mistake with a global find & replace here: https://github.com/transcranial/keras-js/commit/fb6527466490ecf6a978f97709ee8c5fcc39175a
main
inpackage.json
was pointing to the uncompiled files inlib/index.js
. So when this package was installed with npm and required, it required compilation of everything in thesrc
file. For example, it requiredbabel-polyfill
,axios
,glsl
files and other things that aren't really part of this library.This change tells applications who require
keras-js
to load the already compiled files.