diff --git a/packages/jsx-explorer/src/options.ts b/packages/jsx-explorer/src/options.ts index 1957dd9..3f5711e 100644 --- a/packages/jsx-explorer/src/options.ts +++ b/packages/jsx-explorer/src/options.ts @@ -8,6 +8,7 @@ export const compilerOptions: VueJSXPluginOptions = reactive({ optimize: false, transformOn: false, enableObjectSlots: true, + resolveType: false, }); const App = { @@ -86,6 +87,21 @@ const App = { }), h('label', { for: 'enableObjectSlots' }, 'enableObjectSlots'), ]), + + // resolveType + h('li', [ + h('input', { + type: 'checkbox', + id: 'resolveType', + checked: compilerOptions.resolveType, + onChange(e: Event) { + compilerOptions.resolveType = ( + e.target as HTMLInputElement + ).checked; + }, + }), + h('label', { for: 'resolveType' }, 'resolveType'), + ]), ]), ]), ];