fix(modern): modern is wrongly enalbed in full static (#7509)

[release]
This commit is contained in:
Xin Du (Clark) 2020-06-12 20:36:08 +01:00 committed by GitHub
parent b13f9355dd
commit 8fb196c5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,8 @@ export default class VueRenderer {
return
}
if (!resources.modernManifest && options.target !== TARGETS.static) {
const isExplicitStaticModern = options.target === TARGETS.static && options.modern
if (!resources.modernManifest && !isExplicitStaticModern) {
options.modern = false
return
}