mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
chore: hide automock warn
This commit is contained in:
parent
b5b585c0c8
commit
6794b01404
@ -1,11 +1,8 @@
|
|||||||
import consola from 'consola'
|
|
||||||
|
|
||||||
export function autoMock () {
|
export function autoMock () {
|
||||||
return {
|
return {
|
||||||
name: 'auto-mock',
|
name: 'auto-mock',
|
||||||
resolveId (src: string) {
|
resolveId (src: string) {
|
||||||
if (src && !src.startsWith('.') && !src.includes('?') && !src.includes('.js')) {
|
if (src && !src.startsWith('.') && !src.includes('?') && !src.includes('.js')) {
|
||||||
consola.info('Automatically mocking', src)
|
|
||||||
return {
|
return {
|
||||||
id: require.resolve('@nuxt/un/runtime/mock/proxy')
|
id: require.resolve('@nuxt/un/runtime/mock/proxy')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user