From 38b8a408dad6336cc18faf1f37b94646d4354993 Mon Sep 17 00:00:00 2001 From: Jungzl <13jungzl@gmail.com> Date: Tue, 6 Dec 2022 10:34:04 +0100 Subject: [PATCH] Fix package.json exports fields [publish] --- CHANGELOG.md | 4 ++++ package.json | 2 +- scripts/bundle.ts | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1b124..e2e621c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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! diff --git a/package.json b/package.json index d31afa5..7d93cef 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/bundle.ts b/scripts/bundle.ts index 03f01eb..49f9497 100755 --- a/scripts/bundle.ts +++ b/scripts/bundle.ts @@ -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: [