Skip to content

Commit 38b8a40

Browse files
JungzlArnaudBarre
authored andcommitted
Fix package.json exports fields [publish]
1 parent b744eac commit 38b8a40

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.0.0-beta.1
4+
5+
Fix package.json exports fields
6+
37
## 3.0.0-beta.0
48

59
This is the first beta version of the official plugin for using [SWC](https://swc.rs/) with React in Vite!

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitejs/plugin-react-swc",
3-
"version": "3.0.0-beta.0",
3+
"version": "3.0.0-beta.1",
44
"license": "MIT",
55
"scripts": {
66
"dev": "scripts/bundle.ts --dev",

scripts/bundle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export default react;
6060
module: "index.mjs",
6161
exports: {
6262
".": {
63-
require: "index.cjs",
64-
types: "index.d.ts",
65-
import: "index.mjs",
63+
require: "./index.cjs",
64+
types: "./index.d.ts",
65+
import: "./index.mjs",
6666
},
6767
},
6868
keywords: [

0 commit comments

Comments
 (0)