Skip to content

Commit

Permalink
docs(changeset): keep vite 4 (for now) and bug fix in wrap exports (@…
Browse files Browse the repository at this point in the history
…vinxi/plugin-directives)
  • Loading branch information
nksaraf committed Dec 21, 2023
1 parent 68cab94 commit b601463
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/curly-donuts-protect.md
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion packages/vinxi-directives/wrap-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function wrapExportsPlugin({
}

if (hasDir(ast.program)) {
return await wrapExports({
let result = await wrapExports({
runtime,
ast,
id,
Expand All @@ -47,6 +47,8 @@ export function wrapExportsPlugin({
options,
directive: pragma,
});
onModuleFound?.(id);
return result;
}

const body = ast.program.body;
Expand Down
11 changes: 8 additions & 3 deletions packages/vinxi-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"clean": "git clean -Xdff"
},
"main": "dist/index.cjs",
"files": ["dist"],
"files": [
"dist"
],
"peerDependencies": {
"@mdx-js/mdx": "<3"
},
Expand All @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vinxi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit b601463

Please sign in to comment.