Skip to content

Commit

Permalink
fix: explicitly import $fetch
Browse files Browse the repository at this point in the history
Fixes #178
  • Loading branch information
harlan-zw committed Feb 2, 2024
1 parent e63733e commit ca435c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,10 @@
"nuxt-icon": "^0.6.8",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
},
"build": {
"externals": [
"ofetch"
]
}
}
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import chalk from 'chalk'
import { installNuxtSiteConfig } from 'nuxt-site-config-kit'
import { readPackageJSON } from 'pkg-types'
import { $fetch } from 'ofetch'

export interface ModuleOptions {
/**
Expand Down

0 comments on commit ca435c7

Please sign in to comment.