Skip to content

Commit

Permalink
fix script-loader (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Apr 21, 2020
1 parent 109f148 commit a54f5be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/js/Blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */

(function (view) {
const blob = function (view) {
"use strict";

view.URL = view.URL || view.webkitURL;
Expand Down Expand Up @@ -176,4 +176,6 @@
}
return builder.getBlob(type);
};
}(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this));
};

exports.blob = blob;
3 changes: 2 additions & 1 deletion src/js/Export2Excel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable */
require('script-loader!file-saver');
require('script-loader!./Blob');
const { blob } = require('./Blob');
// require('script-loader!./Blob');
require('script-loader!xlsx/dist/xlsx.core.min');
function generateArray(table) {
var out = [];
Expand Down

0 comments on commit a54f5be

Please sign in to comment.