Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace @vue/babel-plugin-jsx with unplugin-vue-jsx #547

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 234 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/babel-plugin-jsx": "^1.2.5",
"babel-preset-solid": "^1.9.3",
"cmdk": "^1.0.0",
"concurrently": "^9.0.1",
Expand Down Expand Up @@ -140,6 +139,7 @@
"typedoc-plugin-vue": "^1.2.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0",
"unplugin-vue-jsx": "^0.4.0",
"virtua": "^0.36.0",
"vite": "5.1.8",
"vite-plugin-solid": "^2.10.2",
Expand Down
10 changes: 2 additions & 8 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { babel, getBabelOutputPlugin } from "@rollup/plugin-babel";
import banner from "rollup-plugin-banner2";
import path from "node:path";
import pkg from "./package.json" with { type: "json" };
import vueJsx from "unplugin-vue-jsx/rollup";
import vueVNodePlugin from "./scripts/babel-plugin-annotate-vue-vnode.mjs";
import { svelteCopy } from "./scripts/rollup-plugin-svelte-copy.mjs";

Expand Down Expand Up @@ -85,14 +86,7 @@ export default [
exclude: ["**/*.{spec,stories}.*"],
jsx: "preserve",
}),
babel({
babelrc: false,
configFile: false,
extensions: [".jsx", ".tsx"],
babelHelpers: "bundled",
plugins: [["@vue/babel-plugin-jsx", { optimize: true }]],
parserOpts: { sourceType: "module", plugins: ["jsx", "typescript"] },
}),
vueJsx({ optimize: true }),
getBabelOutputPlugin({
plugins: [vueVNodePlugin],
}),
Expand Down
Loading