Open
Description
Shipping babel polyfill with the library doesnt play nice with other libraries.
https://github.com/transcranial/keras-js/blob/master/src/index.js#L1
If an application depends on multiple libraries and everything ships with babel-polyfill it will cause
Uncaught Error: only one instance of @babel/polyfill is allowed
Even in cases where the other application doesnt ship with babel polyfill but depend on babel-polyfill, it will fail since the the babel polyfill will be loaded later when this(keras-js) dependency is loaded.
Only solution is to load the babel polyfill first from a cdn or the end application add it as a dependency in their build process
Metadata
Metadata
Assignees
Labels
No labels