Skip to content

Commit 4ea042c

Browse files
authored
Remove unused config in Vue JSX integration (#10687)
1 parent a15975e commit 4ea042c

4 files changed

Lines changed: 5 additions & 22 deletions

File tree

.changeset/few-forks-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@astrojs/vue": patch
3+
---
4+
5+
Removes unused `jsxTransformOptions` and `jsxImportSource` options from the renderer config

packages/integrations/vue/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"dependencies": {
4343
"@vitejs/plugin-vue": "^5.0.4",
4444
"@vitejs/plugin-vue-jsx": "^3.1.0",
45-
"@vue/babel-plugin-jsx": "^1.1.5",
4645
"@vue/compiler-sfc": "^3.3.8"
4746
},
4847
"devDependencies": {

packages/integrations/vue/src/index.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,6 @@ function getRenderer(): AstroRenderer {
1919
};
2020
}
2121

22-
function getJsxRenderer(): AstroRenderer {
23-
return {
24-
name: '@astrojs/vue (jsx)',
25-
clientEntrypoint: '@astrojs/vue/client.js',
26-
serverEntrypoint: '@astrojs/vue/server.js',
27-
jsxImportSource: 'vue',
28-
jsxTransformOptions: async () => {
29-
const jsxPlugin = (await import('@vue/babel-plugin-jsx')).default;
30-
return {
31-
plugins: [jsxPlugin],
32-
};
33-
},
34-
};
35-
}
36-
3722
function virtualAppEntrypoint(options?: Options): Plugin {
3823
const virtualModuleId = 'virtual:@astrojs/vue/app';
3924
const resolvedVirtualModuleId = '\0' + virtualModuleId;
@@ -135,9 +120,6 @@ export default function (options?: Options): AstroIntegration {
135120
hooks: {
136121
'astro:config:setup': async ({ addRenderer, updateConfig }) => {
137122
addRenderer(getRenderer());
138-
if (options?.jsx) {
139-
addRenderer(getJsxRenderer());
140-
}
141123
updateConfig({ vite: await getViteConfiguration(options) });
142124
},
143125
},

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)