|
@@ -7,7 +7,7 @@ export async function cutFile(file){
|
|
const threadChunkCount = Math.ceil(chunkCount / THREAD_COUNT);
|
|
const threadChunkCount = Math.ceil(chunkCount / THREAD_COUNT);
|
|
let result = [], finishCount = 0;
|
|
let result = [], finishCount = 0;
|
|
for(let i = 0; i < chunkCount; i++){
|
|
for(let i = 0; i < chunkCount; i++){
|
|
- const worker = new Worker("node-modules/wxj-tools/tools/worker.js", {
|
|
|
|
|
|
+ const worker = new Worker("node_modules/wxj-tools/tools/worker.js", {
|
|
type: "module",
|
|
type: "module",
|
|
name: "cutFile"
|
|
name: "cutFile"
|
|
});
|
|
});
|