Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Nov 5, 2024
1 parent 26ec4a6 commit 43b6569
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/webpack-plugin/lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const RecordResourceMapDependency = require('./dependencies/RecordResourceMapDep
const CommonJsVariableDependency = require('./dependencies/CommonJsVariableDependency')
const DynamicEntryDependency = require('./dependencies/DynamicEntryDependency')
const tsWatchRunLoaderFilter = require('./utils/ts-loader-watch-run-loader-filter')
const { MPX_APP_MODULE_ID } = require('./utils/const')
const { isReact } = require('./utils/env')
const resolve = require('./utils/resolve')
const isUrlRequestRaw = require('./utils/is-url-request')
Expand Down
19 changes: 9 additions & 10 deletions packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@ function processEventReact (el) {

function processEvent (el, options) {
const eventConfigMap = {}
el.attrsList.forEach(function (attr) {
const parsedEvent = config[mode].event.parseEvent(attr.name)
el.attrsList.forEach(function ({ name, value }) {
const parsedEvent = config[mode].event.parseEvent(name)

if (parsedEvent) {
const type = parsedEvent.eventName
Expand Down Expand Up @@ -2664,17 +2664,16 @@ function closeElement (el, meta, options) {

const isTemplate = postProcessTemplate(el) || processingTemplate
if (!isNative && !isTemplate) {
postProcessComponentIs(el, (child) => {
if (!hasVirtualHost && mode === 'ali') {
postProcessAliComponentRootView(child, options)
} else {
postProcessIf(child)
}
})
postProcessComponentIs(el, (child) => {
if (!hasVirtualHost && mode === 'ali') {
postProcessAliComponentRootView(child, options)
} else {
postProcessIf(child)
}
})
if (isComponentNode(el, options) && !hasVirtualHost && mode === 'ali') {
postProcessAliComponentRootView(el, options, meta)
}

}

if (runtimeCompile) {
Expand Down

0 comments on commit 43b6569

Please sign in to comment.