Checks for CommonJS module environments are not fail-safe
Author: hjerabekCreated Jul 5, 2020Updated Jun 15, 2022
IMO, the CommonJS module environment checks coded here, i.e.
typeof module === 'object' && module.exportswill raise an exception if module==null. They should be changed to
typeof module === 'object' && module && module.exportsSource: umdjs/umd