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
antfu committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 24779f0 commit c471835
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
@@ -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
@@ -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": {
"*": {
"*": [

0 comments on commit c471835

Please sign in to comment.