diff --git a/.changeset/calm-lies-argue.md b/.changeset/calm-lies-argue.md new file mode 100644 index 000000000..a83f3501b --- /dev/null +++ b/.changeset/calm-lies-argue.md @@ -0,0 +1,5 @@ +--- +"@crxjs/vite-plugin": patch +--- + +fix: cjs require file diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index a99429517..4973fbfc7 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -26,7 +26,7 @@ "type": "module", "exports": { ".": { - "require": "./dist/index.cjs", + "require": "./index.cjs", "import": "./dist/index.mjs", "types": "./dist/index.d.ts" }, @@ -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": {