As it turns out, this is a working Observable method for running require on p5 and then adding p5.dom:
p5 = require('p5').then(async p5 => {
await require('p5@0.6.1/lib/addons/p5.dom.js');
return p5;
})
As it turns out, this is a working Observable method for running require on p5 and then adding p5.dom:
p5 = require('p5').then(async p5 => {
await require('p5@0.6.1/lib/addons/p5.dom.js');
return p5;
})