Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/api/loaders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ contributors:
- chenxsan
- jamesgeorge007
- alexeyr
- evenstensberg
---

A loader is a JavaScript module that exports a function. The [loader runner](https://github.com/webpack/loader-runner) calls this function and passes the result of the previous loader or the resource file into it. The `this` context of the function is filled-in by webpack and the [loader runner](https://github.com/webpack/loader-runner) with some useful methods that allow the loader (among other things) to change its invocation style to async, or get query parameters.
Expand Down
1 change: 1 addition & 0 deletions src/content/api/plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contributors:
- EugeneHlushko
- wizardofhogwarts
- snitin315
- evenstensberg
---

Plugins are a key piece of the webpack ecosystem and provide the community with
Expand Down
1 change: 1 addition & 0 deletions src/content/contribute/writing-a-loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contributors:
- jamesgeorge007
- chenxsan
- dev-itsheng
- evenstensberg
---

A loader is a node module that exports a function. This function is called when a resource should be transformed by this loader. The given function will have access to the [Loader API](/api/loaders/) using the `this` context provided to it.
Expand Down
Loading