fix: fix dynamic require of fs is not supported with adm-zip
This commit is contained in:
parent
36c492a328
commit
34f09868f3
1 changed files with 4 additions and 1 deletions
|
|
@ -4,5 +4,8 @@ export default defineConfig({
|
|||
entry: ["src/index.ts"],
|
||||
target: "node22",
|
||||
format: ["cjs", "esm"],
|
||||
dts: true
|
||||
dts: true,
|
||||
banner: {
|
||||
js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);",
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue