disable-tree-shaking-for-chunk-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "disable-tree-shaking-for-chunk-plugin", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "This plugin for Webpack can disable tree shaking for all modules contained in a specific chunk. It is intended to help improve long-term caching and code reuse between project installations and builds.", | ||
@@ -5,0 +5,0 @@ "main": "src/plugin.js", |
@@ -21,4 +21,7 @@ const isTargetChunk = require('./isTargetChunk') | ||
targetChunk.modulesIterable.forEach((m) => { | ||
m.used = true | ||
m.usedExports = true | ||
if (m.type.startsWith('javascript/')) { | ||
m.used = true | ||
m.usedExports = true | ||
m.buildMeta.providedExports = true | ||
} | ||
}) | ||
@@ -25,0 +28,0 @@ }) |
7605
46