Skip to content

Commit

Permalink
fix(zhead): emit cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 9, 2022
1 parent 96adb44 commit e3eb496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/zhead/build.config.ts
Expand Up @@ -4,6 +4,7 @@ export default defineBuildConfig({
clean: true,
declaration: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
},
entries: [
Expand Down
2 changes: 2 additions & 0 deletions packages/zhead/package.json
Expand Up @@ -17,10 +17,12 @@
"sideEffects": false,
"exports": {
".": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
Expand Down

0 comments on commit e3eb496

Please sign in to comment.