GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — use destructing for more readable code · webpack/webpack@c328c65

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • JavascriptModulesPlugin.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/JavascriptModulesPlugin.js‎

Copy file name to clipboardExpand all lines: lib/JavascriptModulesPlugin.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,12 @@ class JavascriptModulesPlugin {
129129
);
130130
compilation.hooks.contentHash.tap("JavascriptModulesPlugin", chunk => {
131131
const outputOptions = compilation.outputOptions;
132-
const hashFunction = outputOptions.hashFunction;
133-
const hashSalt = outputOptions.hashSalt;
134-
const hashDigest = outputOptions.hashDigest;
135-
const hashDigestLength = outputOptions.hashDigestLength;
132+
const {
133+
hashSalt,
134+
hashDigest,
135+
hashDigestLength,
136+
hashFunction
137+
} = outputOptions;
136138
const hash = createHash(hashFunction);
137139
if (hashSalt) hash.update(hashSalt);
138140
const template = chunk.hasRuntime()

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.