Skip to content

Commit

Permalink
Remove unnecessary compatConfig flags (#817)
Browse files Browse the repository at this point in the history
Now that the migration to Vue 3 is complete, compatConfig is no
longer needed and should be removed.

Bug: T355239
  • Loading branch information
codders authored Dec 5, 2024
1 parent fdffe60 commit 82231fc
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 57 deletions.
8 changes: 0 additions & 8 deletions src/components/LanguageInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ const searchInputWrapper = useModelWrapper(
);
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<div class="wbl-snl-language-lookup">
<item-lookup
Expand Down
8 changes: 0 additions & 8 deletions src/components/LemmaInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ const error = computed( (): {
} );
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<cdx-field
class="wbl-snl-lemma-input"
Expand Down
8 changes: 0 additions & 8 deletions src/components/LexicalCategoryInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ const error = computed( () => {
} );
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<div class="wbl-snl-lexical-category-lookup">
<item-lookup
Expand Down
8 changes: 0 additions & 8 deletions src/components/NewLexemeForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ const onSubmit = async () => {
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<form class="wbl-snl-form">
<lemma-input
Expand Down
8 changes: 0 additions & 8 deletions src/components/RequiredAsterisk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ import { useMessages } from '@/plugins/MessagesPlugin/Messages';
const messages = useMessages();
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<span
class="wbl-snl-required-asterisk"
Expand Down
8 changes: 0 additions & 8 deletions src/components/SpellingVariantInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ const searchInputWrapper = useModelWrapper(
);
</script>

<script lang="ts">
export default {
compatConfig: {
MODE: 3,
},
};
</script>

<template>
<cdx-field
class="wbl-snl-spelling-variant-lookup"
Expand Down
10 changes: 1 addition & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@ export default defineConfig( {
},
},
plugins: [
vue( {
template: {
compilerOptions: {
compatConfig: {
MODE: 3,
},
},
},
} ),
vue(),
banner( '/*!/*@nomin*/' ),
],
} );

0 comments on commit 82231fc

Please sign in to comment.