mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-03 23:43:28 +00:00
Ensure jszip is included in library build
This commit is contained in:
parent
2f38c7b499
commit
ea55456dc6
1 changed files with 2 additions and 2 deletions
|
|
@ -6,9 +6,9 @@ import { parseViscolors, parseIni, getFileExtension } from "./utils";
|
|||
const getJSZip = () => {
|
||||
return new Promise(resolve => {
|
||||
require.ensure(
|
||||
"../node_modules/jszip/dist/jszip",
|
||||
["jszip/dist/jszip"],
|
||||
require => {
|
||||
resolve(require("../node_modules/jszip/dist/jszip"));
|
||||
resolve(require("jszip/dist/jszip"));
|
||||
},
|
||||
e => {
|
||||
console.error("Error loading JSZip", e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue