Skip to content

Commit bdb9688

Browse files
author
jonathanmourtada
committed
Migration guide. Added example for opt in old resolve loader behavior
1 parent 358a966 commit bdb9688

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/guides/migrating.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ It is not possible anymore to omit the `-loader` extension when referencing load
7373
]
7474
```
7575

76+
You can still opt-in to the old behavior with the resolveLoader.moduleExtensions configuration option.
77+
``` javascript
78+
resolveLoader: {
79+
moduleExtensions: ["-loader"]
80+
}
81+
```
82+
7683
See [#2986](https://github.com/webpack/webpack/issues/2986) for the reason behind this change.
7784

7885
## `module.preLoaders` and `module.postLoaders` was removed

0 commit comments

Comments
 (0)