Skip to content

Commit

Permalink
feat!: drop CJS build, now it's ESM-only
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 28, 2025
1 parent 24779f0 commit c471835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ export default defineBuildConfig({
],
declaration: true,
clean: true,
rollup: {
emitCJS: true,
},
})
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.mts",
"typesVersions": {
"*": {
"*": [
Expand Down

0 comments on commit c471835

Please # to comment.