Skip to content

Commit 28ced66

Browse files
committed
nuxt: remove jsx support. just use SFCs
1 parent 5b3301f commit 28ced66

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

nuxt/module.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as _nuxt_schema from '@nuxt/schema';
22

3-
declare const _default: _nuxt_schema.NuxtModule<{ jsx?: boolean }>;
3+
declare const _default: _nuxt_schema.NuxtModule<{}>;
44

55
export { _default as default };

nuxt/module.mjs

-9
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,12 @@ export default defineNuxtModule({
66
name: 'v-satori',
77
configKey: 'satori',
88
},
9-
defaults: {
10-
jsx: false,
11-
12-
},
139
setup(options, nuxt) {
1410
nuxt.hook('nitro:config', async (config) => {
1511
config.rollupConfig = config.rollupConfig || {}
1612
config.rollupConfig.plugins = config.rollupConfig.plugins || []
1713

1814
config.rollupConfig.plugins.push(vue())
19-
20-
if (options.jsx) {
21-
const vueJsx = await import('@vitejs/plugin-vue-jsx').then(r => r.default || r)
22-
config.rollupConfig.plugins.push(vueJsx())
23-
}
2415
})
2516
},
2617
})

0 commit comments

Comments
 (0)