Skip to content

Commit

Permalink
Fix package.json exports fields [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungzl authored and ArnaudBarre committed Dec 6, 2022
1 parent b744eac commit 38b8a40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.0-beta.1

Fix package.json exports fields

## 3.0.0-beta.0

This is the first beta version of the official plugin for using [SWC](https://swc.rs/) with React in Vite!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vitejs/plugin-react-swc",
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.1",
"license": "MIT",
"scripts": {
"dev": "scripts/bundle.ts --dev",
Expand Down
6 changes: 3 additions & 3 deletions scripts/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default react;
module: "index.mjs",
exports: {
".": {
require: "index.cjs",
types: "index.d.ts",
import: "index.mjs",
require: "./index.cjs",
types: "./index.d.ts",
import: "./index.mjs",
},
},
keywords: [
Expand Down

0 comments on commit 38b8a40

Please sign in to comment.