Skip to content

Commit

Permalink
fix: cjs require file (#964)
Browse files Browse the repository at this point in the history
* fix: cjs require file

* build(vite-plugin): update package.json for distribution

* Add changeset

---------

Co-authored-by: Jack Steam <[email protected]>
  • Loading branch information
FliPPeDround and jacksteamdev authored Jan 2, 2025
1 parent c93f4ab commit 459a38e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-lies-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crxjs/vite-plugin": patch
---

fix: cjs require file
6 changes: 3 additions & 3 deletions packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"require": "./index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
Expand All @@ -35,14 +35,14 @@
"types": "./client.d.ts"
}
},
"main": "dist/index.cjs",
"main": "index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"types",
"manifest.schema.json",
"schema",
"index.cjs",
"client.d.ts"
],
"scripts": {
Expand Down

0 comments on commit 459a38e

Please sign in to comment.