diff --git a/packages/preset-umi/templates/TestBrowser.tpl b/packages/preset-umi/templates/TestBrowser.tpl index a7f0fef81997..3a0a0b70f2ab 100644 --- a/packages/preset-umi/templates/TestBrowser.tpl +++ b/packages/preset-umi/templates/TestBrowser.tpl @@ -6,6 +6,10 @@ import { createPluginManager } from './core/plugin'; import { getRoutes } from './core/route'; import type { Location } from 'history'; +{{#loadingComponent}} +import Loading from '{{{ loadingComponent }}}'; +{{/loadingComponent}} + {{{ importsAhead }}} const publicPath = '/'; const runtimePublicPath = false;