Skip to content

Commit 83fdc91

Browse files
authored
Merge pull request #351 from Jontem/hot-fix/automatic-loader-removed-added-opt-in-old-behavior
Hot-fix to section: Automatic -loader module name extension removed
2 parents aa46c97 + bdb9688 commit 83fdc91

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)