mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 () {
|
||||
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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user