Skip to content

Commit

Permalink
fix:eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Sep 22, 2023
1 parent a68e750 commit 433ef99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ function processRootViewEventHack (el, options, root) {
return
}
const { fallthroughEventAttrsRules } = options
// TODO: 设置可透传的事件可选列表
let fallThroughEvents = ['bindtap']
// 判断当前文件是否在范围中
const filePath = options.filePath
Expand Down Expand Up @@ -1848,7 +1849,7 @@ function getVirtualHostRoot (options, meta) {
!meta.options && (meta.options = {})
meta.options.virtualHost = true
}
if ((mode === 'ali' && !options.hasVirtualHost) || mode === 'web') {
if ((mode === 'ali' || mode === 'web') && !options.hasVirtualHost) {
// ali组件根节点实体化
const rootView = createASTElement('view', [
{
Expand Down

0 comments on commit 433ef99

Please sign in to comment.