Skip to content

Commit

Permalink
fix: ensure defineNuxtConfig is accessible within config file
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 12, 2021
1 parent 0998d66 commit 06500ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve, join } from 'upath'
import { withTrailingSlash } from 'ufo'

import type { Module } from '@nuxt/types'
import type { Module, NuxtConfig } from '@nuxt/types'

const foolWebpack = (id: string) => require(id)

Expand Down Expand Up @@ -177,3 +177,7 @@ Object.keys(require('./entrypoint')).forEach(helper => {
// @ts-ignore
compositionApiModule[helper] = warnToAddModule
})

// eslint-disable-next-line
// @ts-ignore
compositionApiModule.defineNuxtConfig = (config: NuxtConfig) => config

1 comment on commit 06500ab

@vercel
Copy link

@vercel vercel bot commented on 06500ab Feb 12, 2021

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.