From b60146378faaee8bda0a5bac236c07176707c5b9 Mon Sep 17 00:00:00 2001 From: Nikhil Saraf Date: Thu, 21 Dec 2023 05:50:39 +0530 Subject: [PATCH] docs(changeset): keep vite 4 (for now) and bug fix in wrap exports (@vinxi/plugin-directives) --- .changeset/curly-donuts-protect.md | 7 +++++++ packages/vinxi-directives/wrap-exports.js | 4 +++- packages/vinxi-mdx/package.json | 11 ++++++++--- packages/vinxi/package.json | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .changeset/curly-donuts-protect.md diff --git a/.changeset/curly-donuts-protect.md b/.changeset/curly-donuts-protect.md new file mode 100644 index 00000000..bef62375 --- /dev/null +++ b/.changeset/curly-donuts-protect.md @@ -0,0 +1,7 @@ +--- +"@vinxi/plugin-directives": patch +"@vinxi/plugin-mdx": patch +"vinxi": patch +--- + +keep vite 4 (for now) and bug fix in wrap exports (@vinxi/plugin-directives) diff --git a/packages/vinxi-directives/wrap-exports.js b/packages/vinxi-directives/wrap-exports.js index b92a1f9c..37c89ada 100644 --- a/packages/vinxi-directives/wrap-exports.js +++ b/packages/vinxi-directives/wrap-exports.js @@ -38,7 +38,7 @@ export function wrapExportsPlugin({ } if (hasDir(ast.program)) { - return await wrapExports({ + let result = await wrapExports({ runtime, ast, id, @@ -47,6 +47,8 @@ export function wrapExportsPlugin({ options, directive: pragma, }); + onModuleFound?.(id); + return result; } const body = ast.program.body; diff --git a/packages/vinxi-mdx/package.json b/packages/vinxi-mdx/package.json index f93fca4e..497df6fd 100644 --- a/packages/vinxi-mdx/package.json +++ b/packages/vinxi-mdx/package.json @@ -17,7 +17,9 @@ "clean": "git clean -Xdff" }, "main": "dist/index.cjs", - "files": ["dist"], + "files": [ + "dist" + ], "peerDependencies": { "@mdx-js/mdx": "<3" }, @@ -35,12 +37,15 @@ "@types/resolve": "^1.20.2", "@types/unist": "^2.0.7", "typescript": "^5.2.2", - "vite": "5.0.10" + "vite": "4.5.0" }, "description": "Vite plugin for MDX", "license": "MIT", "repository": "https://github.com/brillout/vite-plugin-mdx", - "keywords": ["vite", "mdx"], + "keywords": [ + "vite", + "mdx" + ], "publishConfig": { "access": "public" } diff --git a/packages/vinxi/package.json b/packages/vinxi/package.json index 616a275f..d2269147 100644 --- a/packages/vinxi/package.json +++ b/packages/vinxi/package.json @@ -171,7 +171,7 @@ "unenv": "^1.7.4", "unimport": "^3.2.0", "unstorage": "^1.9.0", - "vite": "5.0.10", + "vite": "4.5.0", "ws": "^8.13.0", "zod": "^3.22.2" },