From a994cbdfd4fd5819f4bfe0db6525c1f8e5e1f11a Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Sun, 5 Oct 2025 21:15:28 +0200 Subject: [PATCH 1/2] chore: new less loader link --- src/content/api/loaders.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/api/loaders.mdx b/src/content/api/loaders.mdx index a9f7033b10ec..37f2a7d6fa6f 100644 --- a/src/content/api/loaders.mdx +++ b/src/content/api/loaders.mdx @@ -225,7 +225,7 @@ addDependency(file: string) dependency(file: string) // shortcut ``` -Add an existing file as a dependency of the loader result in order to make them watchable. For example, [`sass-loader`](https://github.com/webpack/sass-loader), [`less-loader`](https://github.com/webpack-contrib/less-loader) uses this to recompile whenever any imported `css` file changes. +Add an existing file as a dependency of the loader result in order to make them watchable. For example, [`sass-loader`](https://github.com/webpack/sass-loader), [`less-loader`](https://github.com/webpack/less-loader) uses this to recompile whenever any imported `css` file changes. ### this.addMissingDependency From 2abec32eaf8ed6c242d78f94a5f79a5263586687 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Tue, 7 Oct 2025 15:16:42 +0200 Subject: [PATCH 2/2] chore: remove mention of me --- src/content/api/loaders.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/api/loaders.mdx b/src/content/api/loaders.mdx index 37f2a7d6fa6f..4c9a2620a260 100644 --- a/src/content/api/loaders.mdx +++ b/src/content/api/loaders.mdx @@ -15,7 +15,6 @@ 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.