Hi, thank you for these amazing set of tools!
I’m writing a library that should be easily usable in notebooks (and quarto ojs cells), but I stumble on the best way to build & package this library, because it has a dependency on d3.
I wonder what are the best practices for that? I couldn’t really find examples like this.
My current implementation leads to this:
funkyheatmap = (await require('d3@7').then(d3 => {
window.d3 = d3;
return import('/funkyheatmap.js');
})).default;
And the library is build with d3 dependency aliased to global object d3
.
Hope my question makes sense.
Thank you!