mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
fix(vue-app): sanitizeComponent
import regression with features disabled (#7271)
This commit is contained in:
parent
1ce8041abe
commit
e089ac649f
@ -1,13 +1,16 @@
|
||||
import Vue from 'vue'
|
||||
<% if (features.asyncData || features.fetch) { %>
|
||||
import {
|
||||
getMatchedComponentsInstances,
|
||||
getChildrenComponentInstancesUsingFetch,
|
||||
promisify,
|
||||
globalHandleError,
|
||||
sanitizeComponent
|
||||
} from './utils'
|
||||
<% } %>
|
||||
<% utilsImports = [
|
||||
...(features.asyncData || features.fetch) ? [
|
||||
'getMatchedComponentsInstances',
|
||||
'getChildrenComponentInstancesUsingFetch',
|
||||
'promisify',
|
||||
'globalHandleError'
|
||||
] : [],
|
||||
...features.layouts ? [
|
||||
'sanitizeComponent'
|
||||
]: []
|
||||
] %>
|
||||
<% if (utilsImports.length) { %>import { <%= utilsImports.join(', ') %> } from './utils'<% } %>
|
||||
<% if (features.layouts && components.ErrorPage) { %>import NuxtError from '<%= components.ErrorPage %>'<% } %>
|
||||
<% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %>
|
||||
<% if (buildIndicator) { %>import NuxtBuildIndicator from './components/nuxt-build-indicator'<% } %>
|
||||
|
Loading…
Reference in New Issue
Block a user