Skip to content

Commit 6a7b1e8

Browse files
fix(config): remove duplicates and fix file extensions
1 parent 3d1f2fa commit 6a7b1e8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/content/guides/typescript.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ Let's set up a configuration to support JSX and compile TypeScript down to ES5..
5959
"moduleResolution": "bundler",
6060
"target": "esnext",
6161
"jsx": "react-jsx",
62-
"allowJs": true,
63-
"moduleResolution": "node"
62+
"allowJs": true
6463
},
6564
"include": ["src/**/*"],
6665
"exclude": ["node_modules"]
@@ -187,7 +186,7 @@ If you use [`compilerOptions.paths`](https://www.typescriptlang.org/tsconfig#pat
187186

188187
`resolve.tsconfig` accepts `boolean | string | object`:
189188

190-
**webpack.config.js**
189+
**webpack.config.ts**
191190

192191
```js
193192
export default {
@@ -266,7 +265,6 @@ To enable source maps, we must configure TypeScript to output inline source maps
266265
"target": "esnext",
267266
"jsx": "react-jsx",
268267
"allowJs": true,
269-
"moduleResolution": "node"
270268
},
271269
"include": ["src/**/*"],
272270
"exclude": ["node_modules"]
@@ -275,7 +273,7 @@ To enable source maps, we must configure TypeScript to output inline source maps
275273

276274
Now we need to tell webpack to extract these source maps and include in our final bundle:
277275

278-
**webpack.config.js**
276+
**webpack.config.ts**
279277

280278
```diff
281279
import path from "node:path";

0 commit comments

Comments
 (0)