We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
catch
1 parent d59f9f5 commit 4504a4cCopy full SHA for 4504a4c
src/utils/dev.ts
@@ -123,11 +123,7 @@ class NuxtDevServer extends EventEmitter {
123
const loadingTemplate
124
= this.options.loadingTemplate
125
|| this._currentNuxt?.options.devServer.loadingTemplate
126
- || (
127
- await importModule('@nuxt/ui-templates', this.options.cwd).then(
128
- r => r.loading,
129
- )
130
- ).catch(() => {})
+ || await importModule('@nuxt/ui-templates', this.options.cwd).then(r => r.loading).catch(() => {})
131
|| ((params: { loading: string }) => `<h2>${params.loading}</h2>`)
132
res.end(
133
loadingTemplate({
0 commit comments