Use named define for requireJS

Two benefits:
    
* Helps avoid with mismatched anonymous errors
    
ref: https://requirejs.org/docs/errors.html#mismatch
    
* Allows for uglification in the demo
This commit is contained in:
gfyoung 2021-10-02 11:58:53 -07:00 committed by GitHub
parent 7c0b869c7f
commit a376a6c78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@
/*:: declare var define:any; */
if(typeof exports !== 'undefined') make_xlsx_lib(exports);
else if(typeof module !== 'undefined' && module.exports) make_xlsx_lib(module.exports);
else if(typeof define === 'function' && define.amd) define(function() { if(!XLSX.version) make_xlsx_lib(XLSX); return XLSX; });
else if(typeof define === 'function' && define.amd) define('xlsx-dist', function() { if(!XLSX.version) make_xlsx_lib(XLSX); return XLSX; });
else make_xlsx_lib(XLSX);
/*exported XLS, ODS */
var XLS = XLSX, ODS = XLSX;