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 — fix #6688 · webpack/webpack@800e7f9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/optimize
    • ConcatenatedModule.js
  • test/configCases/scope-hoisting/class-naming
    • index.js
    • module.js
    • module2.js
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/optimize/ConcatenatedModule.js‎

Copy file name to clipboardExpand all lines: lib/optimize/ConcatenatedModule.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ const getSymbolsFromScope = (s, untilScope) => {
173173
const allUsedNames = new Set();
174174
let scope = s;
175175
while (scope) {
176-
if (untilScope === scope) break;
177176
for (const variable of scope.variables) {
178177
allUsedNames.add(variable.name);
179178
}
179+
if (untilScope === scope) break;
180180
scope = scope.upper;
181181
}
182182
return allUsedNames;
Collapse file

‎test/configCases/scope-hoisting/class-naming/index.js‎

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Hello as t } from "./module2";
2+
3+
it("should rename classes correctly", () => {
4+
new t();
5+
});
Collapse file

‎test/configCases/scope-hoisting/class-naming/module.js‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export class Hello {}
Collapse file

‎test/configCases/scope-hoisting/class-naming/module2.js‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import * as MODULE from "./module";
2+
let Hello = class Hello extends MODULE.Hello {}
3+
export { Hello }
Collapse file

‎test/configCases/scope-hoisting/class-naming/webpack.config.js‎

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
optimization: {
3+
concatenateModules: true
4+
}
5+
};

0 commit comments

Comments
0 (0)
You are visitor 01402622 — 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.