Socket
Socket
Sign inDemoInstall

disable-tree-shaking-for-chunk-plugin

Package Overview
Dependencies
291
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc