Skip to content

Commit

Permalink
fix: update unbuild to 2.0.0, fix type declarations for ESM (#28)
Browse files Browse the repository at this point in the history
* fix: update unbuild to 2.0.0, fix type declarations for ESM

Fixes #24

* Make reserved names ES3 compliant
  • Loading branch information
wojtekmaj committed Feb 20, 2024
1 parent 70c78aa commit 2266824
Show file tree
Hide file tree
Showing 3 changed files with 797 additions and 818 deletions.
9 changes: 7 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ export default defineBuildConfig({
entries: ['src/index'],
externals: ['vite'],
clean: true,
declaration: true,
declaration: 'compatible',
rollup: {
emitCJS: true,
inlineDependencies: true
inlineDependencies: true,
output: {
generatedCode: {
reservedNamesAsProps: false
}
}
}
})
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
Expand Down Expand Up @@ -48,7 +47,7 @@
"prettier": "^2.8.8",
"rollup": "^2.79.1",
"semver": "^7.6.0",
"unbuild": "^0.9.4",
"unbuild": "^2.0.0",
"vite": "^5.0.0",
"vitest": "^0.34.6",
"node-forge": "^1.3.1"
Expand Down
Loading

0 comments on commit 2266824

Please sign in to comment.