Are there any tips and tricks for non-UMD modules - in particular, any handy utilities to get the packages to play nicely with Observable? Here are a couple of examples:
Sure thing! These are both resolveable with one of the methods in my stubborn modules notebook - specifically the 'module that attaches a variable to the window but doesn’t implement UMD one - try
Nt = require('https://cdn.rawgit.com/keithwhor/NtSeq/master/web/ntseq.js').catch(()=>window.Nt)
Thanks - I’ve looked through your modules notebook, but didn’t put 2 and 2 together in the case where one isn’t globbing on to another module (as in your notebook), rather just adding something to the global namespace.
Oops, this was a bug in d3-require, which is used by Observable to implement require! d3-require is supposed to ignore the names in asynchronous module definitions such as cellauto:
Instead, it thought that cellauto depended on various single-letter modules (“C”, “e”, “l”, ”l”, “A”, etc.). This has been fixed in d3-require 0.6.4 and will be deployed shortly to Observable.