Skip to content

Commit

Permalink
fix: defaulted to true for experimentalRemoveNuxtDefs
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Mar 29, 2023
1 parent e857bbf commit 6983658
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/content/3.options/3.experimentalRemoveNuxtDefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ title: experimentalRemoveNuxtDefs
Remove Nuxt global definitions for `useRouter` etc.. to avoid conflicts
## Type
`type: boolean`
`default: false`
`default: true`

1 change: 1 addition & 0 deletions playground/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { TypedRouteLocationRawFromName, helpers } from '@typed-router';
definePageMeta({
title: 'foo',
redirect: { name: 'admin-id', params: { id: 1 } },
});
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineNuxtModule<ModuleOptions>({
plugin: false,
strict: false,
experimentalPathCheck: true,
experimentalRemoveNuxtDefs: false,
experimentalRemoveNuxtDefs: true,
},
setup(moduleOptions, nuxt: Nuxt) {
const { resolve } = createResolver(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion src/types/config.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ModuleOptions {
strict?: boolean | StrictOptions;
/**
* Remove Nuxt definitions to avoid conflicts
* @default false
* @default true
*/
experimentalRemoveNuxtDefs?: boolean;
}
Expand Down

1 comment on commit 6983658

@vercel
Copy link

@vercel vercel bot commented on 6983658 Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.