@nuxt/vue-app
Advanced tools
Comparing version 2.12.1 to 2.12.2
/*! | ||
* @nuxt/vue-app v2.12.1 (c) 2016-2020 | ||
* @nuxt/vue-app v2.12.2 (c) 2016-2020 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
{ | ||
"name": "@nuxt/vue-app", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -21,3 +21,3 @@ import Vue from 'vue' | ||
if (splitChunks.layouts) { | ||
return `const _${hash(key)} = () => import('${layouts[key]}' /* webpackChunkName: "${wChunk('layouts/' + key)}" */).then(m => m.default || m)` | ||
return `const _${hash(key)} = () => import('${layouts[key]}' /* webpackChunkName: "${wChunk('layouts/' + key)}" */).then(m => sanitizeComponent(m.default || m))` | ||
} else { | ||
@@ -28,5 +28,9 @@ return `import _${hash(key)} from '${layouts[key]}'` | ||
<% if (splitChunks.layouts) { %> | ||
let resolvedLayouts = {} | ||
const layouts = { <%= Object.keys(layouts).map(key => `"_${key}": _${hash(key)}`).join(',') %> }<%= isTest ? '// eslint-disable-line' : '' %> | ||
<% } else { %> | ||
const layouts = { <%= Object.keys(layouts).map(key => `"_${key}": sanitizeComponent(_${hash(key)})`).join(',') %> }<%= isTest ? '// eslint-disable-line' : '' %> | ||
<% } %> | ||
<% if (splitChunks.layouts) { %>let resolvedLayouts = {}<% } %> | ||
<% } %> | ||
@@ -33,0 +37,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146302
3035