Skip to content

Commit

Permalink
fix: change export to named export
Browse files Browse the repository at this point in the history
  • Loading branch information
Hebilicious committed Jun 1, 2023
1 parent 2b5cde0 commit 5f28131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-query-nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineNuxtModule<VueQueryOptions>({

// 4. Write pluginCallback() to .nuxt
const writeFile = async () => {
let getContents = async () => "export default function pluginCallback() {}"
let getContents = async () => "export function pluginCallback() {}"
if (existsSync(resolve(nuxt.options.rootDir, "vue-query.config.ts"))) {
const configFile = resolve(nuxt.options.rootDir, "vue-query.config.ts")
const file = await loadFile(configFile)
Expand Down

0 comments on commit 5f28131

Please sign in to comment.