Skip to content

Commit

Permalink
feat(jsx-explorer): add resolveType option (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jan 23, 2024
1 parent 0838a22 commit 9d97341
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/jsx-explorer/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const compilerOptions: VueJSXPluginOptions = reactive({
optimize: false,
transformOn: false,
enableObjectSlots: true,
resolveType: false,
});

const App = {
Expand Down Expand Up @@ -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'),
]),
]),
]),
];
Expand Down

0 comments on commit 9d97341

Please sign in to comment.