noModule method
This attribute is set to indicate that the script should not be executed in browsers that support ES modules — in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code. Read more...
Implementation
Script noModule(bool boolean) {
if (boolean && node.attrs != null) {
VirtualAttr attr = VirtualAttr('nomodule', '');
node.attrs!.add(attr);
}
return this;
}