Skip to content

Commit 4cbf5b4

Browse files
refactor(guides): remove unecessary paragraph & command
1 parent 64346fc commit 4cbf5b4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/content/guides/typescript.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ First install the TypeScript compiler and loader by running:
2525
npm install --save-dev typescript ts-loader
2626
```
2727

28-
Now we'll modify the directory structure & the configuration files, we need to swap our JavaScript files over to TypeScript. Rename the core files by changing their extensions from .js to .ts as shown below:
29-
`.src/index.js` to `./src/index.ts`
30-
and `webpack.config.js` to `webpack.config.ts`
28+
Now we'll modify the directory structure & the configuration files:
3129

3230
**project**
3331

@@ -152,7 +150,7 @@ There are 3 ways to use TypeScript in `webpack.config.ts`:
152150
1. **Using webpack with built-in Node.js type stripping feature (recommended):**
153151

154152
```bash
155-
npx webpack -c ./webpack.config.ts
153+
webpack -c ./webpack.config.ts
156154
```
157155

158156
Will attempt to load the configuration using Node.js's built-in [type-stripping](https://nodejs.org/api/typescript.html#type-stripping), and then attempt to load the configuration file using `interpret` and `rechoir` (in this case you need to install `tsx` or `ts-node` or other tools).

0 commit comments

Comments
 (0)