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: add declaration for unused harmony import specifier by hai-x · Pull Request #20286 · webpack/webpack

Conversation

@hai-x

@hai-x hai-x commented Jan 5, 2026 •
edited by alexander-akait
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

What kind of change does this PR introduce?

Fixes #20151 and fixes #20276.

We will generate a var declaration (i.e. var unused_import_specifier) for unused import specifiers to reduce the likelihood of the entry module being wrapped in an IIFE.

Notably, the declaration will be safely removed after minimize, so i think the pros outweigh the costs.

Did you add tests for your changes?

Yes

Does this PR introduce a breaking change?

No

If relevant, what needs to be documented once your changes are merged or what have you already documented?

No

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

anomiex reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@hai-x
fix: add declaration for unused harmony import specifier
739f11e
@changeset-bot

changeset-bot Bot commented Jan 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 34f5861

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
webpack Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jan 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (fd55587).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@fd55587
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@fd55587
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@fd55587
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codspeed

codspeed Bot commented Jan 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing issue-20151 (34f5861) with main (dc644c4)

Summary

✅ 72 untouched benchmarks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hai-x hai-x mentioned this pull request Jan 6, 2026
fix: replace inactive harmony import specifiers with undefined to avoid global reference (#20151) #20276
Closed
@hai-x
test
7e1eb1b
@hai-x
hai-x marked this pull request as ready for review January 6, 2026 16:46
@hai-x
test
d8dc55c
@hai-x
hai-x force-pushed the issue-20151 branch from 6e58d99 to d8dc55c Compare January 7, 2026 18:09
alexander-akait
alexander-akait approved these changes Jan 12, 2026
View reviewed changes
@alexander-akait
Create sixty-elephants-poke.md
34f5861
@alexander-akait
alexander-akait merged commit fd55587 into main Jan 12, 2026
@alexander-akait
alexander-akait deleted the issue-20151 branch January 12, 2026 16:13
@github-actions github-actions Bot mentioned this pull request Jan 12, 2026
chore(release): new release #20256
Merged
@anomiex anomiex mentioned this pull request Jan 12, 2026
Unused function in ESM code winds up incorrectly referencing a global #20151
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexander-akait alexander-akait alexander-akait approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Unused function in ESM code winds up incorrectly referencing a global

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hai-x @alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.