From ccf8bbc63d8c9e463579e2b64cea6179a35f4c3d Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 11 Feb 2024 15:20:34 +1000 Subject: [PATCH] fix: Vite 5 - The CJS build of Vite's Node API is deprecated --- workspaces/plugin/package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/workspaces/plugin/package.json b/workspaces/plugin/package.json index 2f54707..4020e6f 100644 --- a/workspaces/plugin/package.json +++ b/workspaces/plugin/package.json @@ -6,6 +6,12 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" + } + }, "description": "Out-of-box MPA plugin for Vite, with html template engine and virtual files support.", "homepage": "https://github.com/emosheeep/vite-plugin-virtual-mpa/tree/master/workspaces/plugin#readme", "repository": {