Skip to content

Commit

Permalink
runtimeModules are never in middleware layer, but maybe in middleware…
Browse files Browse the repository at this point in the history
… chunks


> I would juest omit that and leave source maps on for them

Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
  • Loading branch information
Schniz and sokra committed Feb 17, 2022
1 parent 4beab5a commit 27b7c80
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -41,9 +41,6 @@ class MiddlewareSourceMapsPlugin {
compilation.hooks.buildModule.tap(PLUGIN_NAME, (module) => {
module.useSourceMap = module.layer === 'middleware'
})
compilation.hooks.runtimeModule.tap(PLUGIN_NAME, (module) => {
module.useSourceMap = module.layer === 'middleware'
})
})
}
}

0 comments on commit 27b7c80

Please sign in to comment.