Skip to content

Commit fed61e7

Browse files
committed
docs(concepts): use compiler.webpack.sources in plugins note
1 parent a8e449d commit fed61e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/concepts/plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contributors:
1515

1616
They also serve the purpose of doing **anything else** that a [loader](/concepts/loaders) cannot do. Webpack provides [many such plugins](/plugins/) out of the box.
1717

18-
T> When consuming [`webpack-sources`](https://github.com/webpack/webpack-sources) package in plugins, use `import { sources } from "webpack"` instead of importing from `webpack-sources` to avoid version conflicts for persistent caching.
18+
T> When consuming [`webpack-sources`](https://github.com/webpack/webpack-sources) package in plugins, prefer `compiler.webpack.sources` instead of importing from `webpack` or `webpack-sources` to avoid version conflicts for persistent caching.
1919

2020
## Anatomy
2121

0 commit comments

Comments
 (0)