Skip to content

Commit 0874653

Browse files
nveenjainskipjack
authored andcommitted
docs(contribute): fix typo in writing-a-loader (#1829)
1 parent 1cd6b51 commit 0874653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/contribute/writing-a-loader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Loaders should do only a single task. This not only makes the job of maintaining
9898

9999
### Chaining
100100

101-
Take advantage of the fact that loaders can be chained together. Instead of writing a single loader that tackles five tasks, write five simpler loaders that divide this effort. Isolating them not only keeps each individual loader simple, but may allow for them to be used for something you hadn't though of originally.
101+
Take advantage of the fact that loaders can be chained together. Instead of writing a single loader that tackles five tasks, write five simpler loaders that divide this effort. Isolating them not only keeps each individual loader simple, but may allow for them to be used for something you hadn't thought of originally.
102102

103103
Take the case of rendering a template file with data specified via loader options or query parameters. It could be written as a single loader that compiles the template from source, executes it and returns a module that exports a string containing the HTML code. However, in accordance with guidelines, a simple `apply-loader` exists that can be chained with other open source loaders:
104104

0 commit comments

Comments
 (0)