mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
revert back auto mock warning
This commit is contained in:
parent
6794b01404
commit
ba0943aa22
@ -1,8 +1,11 @@
|
||||
import consola from 'consola'
|
||||
|
||||
export function autoMock () {
|
||||
return {
|
||||
name: 'auto-mock',
|
||||
resolveId (src: string) {
|
||||
if (src && !src.startsWith('.') && !src.includes('?') && !src.includes('.js')) {
|
||||
consola.warn('Auto mock external ', src)
|
||||
return {
|
||||
id: require.resolve('@nuxt/un/runtime/mock/proxy')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user