Skip to content

Commit bffe85e

Browse files
authored
Merge pull request #669 from frederikprijck/fix/668
fix(migrating): Incorrect migration docs regarding 'rule'
2 parents 3a8b9b9 + eb42bbc commit bffe85e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/guides/migrating.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ contributors:
88
- domfarolino
99
- johnnyreilly
1010
- jouni-kantola
11+
- frederikprijck
1112
---
1213

1314
## `resolve.root`, `resolve.fallback`, `resolve.modulesDirectories`
@@ -333,7 +334,7 @@ You can *no longer* configure a loader with a custom property in the `webpac
333334
module.exports = {
334335
...
335336
module: {
336-
use: [{
337+
rules: [{
337338
test: /\.tsx?$/,
338339
loader: 'ts-loader'
339340
}]
@@ -351,7 +352,7 @@ Good question. Well, strictly speaking it's 2 possible things; both ways to conf
351352
module.exports = {
352353
...
353354
module: {
354-
use: [{
355+
rules: [{
355356
test: /\.tsx?$/,
356357
loader: 'ts-loader?' + JSON.stringify({ transpileOnly: false })
357358
}]
@@ -365,7 +366,7 @@ But it can also be a separately specified object that's supplied alongside a loa
365366
module.exports = {
366367
...
367368
module: {
368-
use: [{
369+
rules: [{
369370
test: /\.tsx?$/,
370371
loader: 'ts-loader'
371372
options: { transpileOnly: false }

0 commit comments

Comments
 (0)