Closed fullee closed 2 years ago
Did you define a require
function?
If the node:fs
module is available, it is recommended that you implement chooseSendFiles
and chooseSaveDirectory
.
Otherwise, maybe I should add an option to force it to run in browser.
I guess this function doesn't work,isRunningInBrowser
.
Can you test require("fs")
and require.resolve("fs")
on the console?
I run npm install again and it works,very confused 😓
Reasons for Feels like vite compilation
https://github.com/trzsz/trzsz.js/blob/7681a63a4cafa460949bec253f277466f9ee5d52/src/filter.ts#L190
My environment is browser but it goes to nodejs code