deno.land / x / sheetjs@v0.18.3 / demos / systemjs / worker.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */importScripts('https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.20.19/system.js');
SystemJS.config({ meta: { 'xlsx': { exports: 'XLSX' // <-- tell SystemJS to expose the XLSX variable } }, map: { 'xlsx': 'xlsx.full.min.js', // <-- make sure xlsx.full.min.js is in same dir 'fs': '', // <--| 'crypto': '', // <--| suppress native node modules 'stream': '' // <--| }});
onmessage = function(evt) { /* the real action is in the _cb function from xlsxworker.js */ SystemJS.import('xlsxworker.js').then(function() { _cb(evt); });};
sheetjs

Version Info

Tagged at
2 years ago