Hi all, I've been working on a plugin that bundles d3js.
I developed it in 3.8 and all was working fine, however I'm trying to add support for 3.9 and newer.
https://github.com/catalyst/moodle-local_uowvis
The problem here is that the grunt AMD task fails on the babel step because it's running out of stack space trying to minify and map d3.js in the amd/src directory.
Warning: /home/travis/build/moodle/local/uowvis/amd/src/d3.js: Maximum call stack size exceeded Use --force to continue.
Does anyone know if we can skip the babel build and include the preminified js for d3, which comes with it's release and if there is a way to skip the babel steps for specific source files (specifically third party ones)
As per: https://moodle.org/mod/forum/discuss.php?d=402044
I was embedding it in amd/src directory, but perhaps that's not the best path forward if babel is going to struggle with large dependencies, should we be vendoring it in via some other method?