Skip to content

docs(typescript): add link for writing config file in typescript#7819

Merged
alexander-akait merged 4 commits intowebpack:mainfrom
TusharThakur04:docs/ts-config-link
Feb 17, 2026
Merged

docs(typescript): add link for writing config file in typescript#7819
alexander-akait merged 4 commits intowebpack:mainfrom
TusharThakur04:docs/ts-config-link

Conversation

@TusharThakur04
Copy link
Copy Markdown
Contributor

Fixes: #6106
Refrence: #6105

Summary
This PR adds a link inside typescript guide doc to clarify config can be written in a typescript file.

What kind of change does this PR introduce?
docs

Did you add tests for your changes?
no

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?

Screenshot from 2026-02-17 02-58-59

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 16, 2026

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

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Feb 17, 2026 1:11pm

Request Review

@TusharThakur04
Copy link
Copy Markdown
Contributor Author

@alexander-akait please review.

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Let's better add the example using typescript instead js and also provide link like you done

@TusharThakur04
Copy link
Copy Markdown
Contributor Author

sure

Comment thread src/content/guides/typescript.mdx Outdated
First, install the required dependencies:

```bash
npm install --save-dev typescript ts-node @types/node
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's remove typescript from list, because we already installed it above typescript

@TusharThakur04
Copy link
Copy Markdown
Contributor Author

@alexander-akait done removing typescript dependency,
also should i raise another PR to remove @types/webpack from typescript config

Comment thread src/content/guides/typescript.mdx Outdated
**webpack.config.ts**

```ts
import path from "path";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's use node:path

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Remove JS version, we don't need it, only Typescript

@TusharThakur04
Copy link
Copy Markdown
Contributor Author

@alexander-akait done

@alexander-akait alexander-akait merged commit 6a96492 into webpack:main Feb 17, 2026
8 checks passed
@TusharThakur04
Copy link
Copy Markdown
Contributor Author

@alexander-akait thanks for guiding me.

should i raise PR for this?

@alexander-akait done removing typescript dependency, also should i raise another PR to remove @types/webpack from typescript config

@TusharThakur04 TusharThakur04 deleted the docs/ts-config-link branch March 4, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc: Add a section for webpack.config.ts

2 participants