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(experiments): document experiments.typescript (5.107) by bjohansebas · Pull Request #8247 · webpack/webpack.js.org

Conversation

@bjohansebas

@bjohansebas bjohansebas commented May 19, 2026

Copy link
Copy Markdown
Member

Summary

Webpack 5.107 adds first-class TypeScript support behind a new experiments.typescript flag using Node.js's built-in module.stripTypeScriptTypes (Node.js >= 22.6).

Documents:

  • The flag itself (boolean, default false, auto-enabled by experiments.futureDefaults).
  • The defaults wired up automatically: rules for .ts / .cts / .mts, .ts in extension resolution, extensionAlias from .js / .cjs / .mjs to the matching .ts extensions, tsconfig.json resolution, and the "typescript" conditional-exports key.
  • The constraints (types-only transform; no type checking, no JSX/.tsx, no non-erasable syntax like enum / namespace / parameter-property constructors), matching tsconfig's erasableSyntaxOnly.
  • Links to examples/typescript and examples/typescript-non-erasable for the built-in setup and the ts-loader fallback.

Refs: webpack/webpack#20964

Test plan

  • Visual check of the new ### experiments.typescript section
  • Verify the TOC entry links correctly
  • Verify the warning admonition is visible
  • Verify the badge shows "5.107.0+"

Use of AI

Drafted with Claude under human review. The contributor verified each change against the upstream webpack PR before commit.

Sorry, something went wrong.

Uh oh!

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

All reactions
@bjohansebas
docs(experiments): document experiments.typescript (5.107)
a6e6b4e
Webpack 5.107 adds first-class TypeScript support behind a new
experiments.typescript flag using Node.js's built-in
module.stripTypeScriptTypes (Node.js >= 22.6). Documents:

- The flag itself (boolean, default false, auto-enabled by
  experiments.futureDefaults).
- The defaults it wires up (rules, extension resolution, extensionAlias,
  tsconfig resolution, "typescript" conditional-exports key).
- The constraints: types-only transform, no type checking, no JSX/.tsx,
  no non-erasable syntax (enum, namespace, etc.), matching tsconfig's
  erasableSyntaxOnly.
- Links to examples/typescript and examples/typescript-non-erasable in
  the webpack repo for both the built-in setup and the ts-loader fallback.

Refs: webpack/webpack#20964
@vercel

vercel Bot commented May 19, 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 24, 2026 5:38pm

Request Review

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 19, 2026 14:54
View deployment
alexander-akait
alexander-akait previously approved these changes May 19, 2026
View reviewed changes
@alexander-akait

alexander-akait commented May 19, 2026

Copy link
Copy Markdown
Member

@bjohansebas let's rebase and we can merge, thanks

All reactions

Sorry, something went wrong.

Uh oh!

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

evenstensberg
evenstensberg previously approved these changes May 20, 2026
View reviewed changes
@evenstensberg

evenstensberg commented May 20, 2026

Copy link
Copy Markdown
Member

could you rebase?

All reactions

Sorry, something went wrong.

Uh oh!

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

@bjohansebas
Merge branch 'main' into docs/experiments-typescript
2a60f0c
@bjohansebas
bjohansebas dismissed evenstensberg’s stale review via 2a60f0c May 24, 2026 17:27
Copilot AI review requested due to automatic review settings May 24, 2026 17:27
@bjohansebas
bjohansebas dismissed alexander-akait’s stale review via 2a60f0c May 24, 2026 17:27
Copilot started reviewing on behalf of bjohansebas May 24, 2026 17:27
View session
@vercel
vercel Bot deployed to Preview May 24, 2026 17:29
View deployment
Copilot AI reviewed May 24, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for webpack 5.107’s new experimental TypeScript support behind experiments.typescript, explaining what gets enabled by default, the feature’s constraints, and pointing to upstream examples.

Changes:

  • Adds experiments.typescript to the experiments option list/TOC.
  • Documents the new experiments.typescript flag, including defaults it wires up (rules, resolution, extensionAlias, tsconfig, conditional exports).
  • Adds a warning callout describing “types-erasure only” limitations and recommended tooling alternatives.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/content/configuration/experiments.mdx Resolved

Uh oh!

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

@bjohansebas
Potential fix for pull request finding
367d2c6
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings May 24, 2026 17:36
Copilot started reviewing on behalf of bjohansebas May 24, 2026 17:36
View session
Copilot AI reviewed May 24, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sorry, something went wrong.

Uh oh!

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

All reactions
@vercel
vercel Bot deployed to Preview May 24, 2026 17:38
View deployment
@bjohansebas
bjohansebas enabled auto-merge (squash) May 24, 2026 17:39
@bjohansebas
bjohansebas disabled auto-merge May 24, 2026 18:14
@bjohansebas
bjohansebas merged commit ce9ce97 into main May 24, 2026
8 checks passed

Uh oh!

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

@bjohansebas
bjohansebas deleted the docs/experiments-typescript branch May 24, 2026 18:14

This branch was successfully deployed

1 active deployment
Preview — 367d2c61 Deployed May 24, 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

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@alexander-akait alexander-akait alexander-akait left review comments
@evenstensberg evenstensberg evenstensberg left review comments

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.

4 participants

@bjohansebas @alexander-akait @evenstensberg
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.