Skip to content

Commit

Permalink
fix:eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Aug 7, 2023
1 parent 321365f commit 2a06796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ResolveDependency extends NullDependency {
return pagesMap[resourcePath] || currentComponentsMap[resourcePath] || mainComponentsMap[resourcePath] || currentStaticResourcesMap[resourcePath] || mainStaticResourcesMap[resourcePath] || ''
}

isPartialCompileFilteredPage(resource) {
isPartialCompileFilteredPage (resource) {
const { compilation } = this
if (!compilation) return ''
const mpx = compilation.__mpx__
Expand Down
4 changes: 1 addition & 3 deletions packages/webpack-plugin/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,8 @@ class MpxWebpackPlugin {
stage: -100
}, (obj, resolverContext, callback) => {
if (isResolvingPage(obj) && !matchCondition(obj.path, this.options.partialCompile)) {
mpx? mpx.partialCompileFilteredPagesMap[obj.path] = true : null
if (mpx) mpx.partialCompileFilteredPagesMap[obj.path] = true
obj.path = false

console.log('mpx', mpx)
}
callback(null, obj)
})
Expand Down

0 comments on commit 2a06796

Please sign in to comment.