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 — docs(guides/tree-shaking): document #__NO_SIDE_EFFECTS__ annotation by bjohansebas · Pull Request #8238 · webpack/webpack.js.org

Conversation

@bjohansebas

@bjohansebas bjohansebas commented May 17, 2026

Copy link
Copy Markdown
Member

Summary

Webpack 5.107 supports the #__NO_SIDE_EFFECTS__ annotation from the compiler-notations-spec, letting authors mark function declarations as side-effect-free so calls can be tree-shaken when their return value is unused.

Adds a new subsection in guides/tree-shaking right after the existing /*#__PURE__*/ section, with the caveat that propagation is currently intra-module only (cross-module propagation is planned for a future release).

Refs: webpack/webpack#20775

Test plan

  • Visual check of the new subsection
  • Verify the badge shows "5.107.0+"

Sorry, something went wrong.

Uh oh!

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

All reactions
@vercel

vercel Bot commented May 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment May 17, 2026 2:32am

Request Review

All reactions

Sorry, something went wrong.

Uh oh!

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

@linux-foundation-easycla

linux-foundation-easycla Bot commented May 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bjohansebas / name: Sebastian Beltran (26b475a)

All reactions

Sorry, something went wrong.

Uh oh!

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

@vercel
vercel Bot deployed to Preview May 17, 2026 02:08
View deployment
@bjohansebas
docs(guides/tree-shaking): document #__NO_SIDE_EFFECTS__ annotation
26b475a
Webpack 5.107 supports the #__NO_SIDE_EFFECTS__ annotation from the
compiler-notations-spec, letting authors mark function declarations as
side-effect-free so calls can be tree-shaken when their return value is
unused. Adds a new subsection in the tree shaking guide right after the
existing /*#__PURE__*/ section, with the caveat that propagation is
currently intra-module only.

Refs: webpack/webpack#20775
@bjohansebas
bjohansebas force-pushed the docs/no-side-effects-annotation branch from dc5ce90 to 26b475a Compare May 17, 2026 02:30
@vercel
vercel Bot deployed to Preview May 17, 2026 02:32
View deployment
alexander-akait
alexander-akait approved these changes May 18, 2026
View reviewed changes
@alexander-akait
alexander-akait merged commit a6c595e into main May 18, 2026
7 checks passed

Uh oh!

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

@alexander-akait
alexander-akait deleted the docs/no-side-effects-annotation branch May 18, 2026 15:18

This branch was successfully deployed

1 active deployment
Preview — 26b475af Deployed May 17, 2026 by vercel[bot]
View deployment
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.

Uh oh!

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

2 participants

@bjohansebas @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.