Skip to content

Commit 1b3c0d8

Browse files
committed
👷 打包切换回jszip
1 parent 9b1df8d commit 1b3c0d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/pack.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global process */
22
import { promises as fs } from "fs";
33
import { createWriteStream } from "fs";
4-
import { createJSZip } from "@App/pkg/utils/jszip-x";
4+
import JSZip from "jszip";
55
import ChromeExtension from "crx";
66
import { execSync } from "child_process";
77
import manifest from "../src/manifest.json" with { type: "json" };
@@ -90,8 +90,8 @@ firefoxManifest.commands = {
9090
_execute_action: {},
9191
};
9292

93-
const chrome = createJSZip();
94-
const firefox = createJSZip();
93+
const chrome = new JSZip();
94+
const firefox = new JSZip();
9595

9696
async function addDir(zip, localDir, toDir, filters) {
9797
const sub = async (localDir, toDir) => {

0 commit comments

Comments
 (0)