fix: remove unneeded js banner that make the commonjs build unusable
This commit is contained in:
parent
afda1a9d2a
commit
a09bec73a6
1 changed files with 1 additions and 4 deletions
|
|
@ -4,8 +4,5 @@ export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
target: "node22",
|
target: "node22",
|
||||||
format: ["cjs", "esm"],
|
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