Closed hypercross closed 1 year ago
The webpack setup could use some work.
worker-loader
index.js
module
import.meta.url
@tensorflow/tfjs
~200kb
The webpack setup could use some work.
worker-loader
is deprecated under webpack 5, which throws an error during installation.index.js
should probably be converted to amodule
type, to support theimport.meta.url
required for worker under webpack 5.@tensorflow/tfjs
is the only huge bundled dependency of the project and should probably be externalized. Dev bundle size becomes~200kb
after this.