chore: hide automock warn

This commit is contained in:
Pooya Parsa 2020-11-20 22:09:53 +01:00
parent b5b585c0c8
commit 6794b01404
1 changed files with 0 additions and 3 deletions

View File

@ -1,11 +1,8 @@
import consola from 'consola'
export function autoMock () {
return {
name: 'auto-mock',
resolveId (src: string) {
if (src && !src.startsWith('.') && !src.includes('?') && !src.includes('.js')) {
consola.info('Automatically mocking', src)
return {
id: require.resolve('@nuxt/un/runtime/mock/proxy')
}