diff --git a/src/loaders/postcss/index.ts b/src/loaders/postcss/index.ts index 746d0f07..b672ef6e 100644 --- a/src/loaders/postcss/index.ts +++ b/src/loaders/postcss/index.ts @@ -156,7 +156,7 @@ const loader: Loader = { if (options.inject) { if (typeof options.inject === "function") { output.push( - options.inject(cssVarName, this.id), + options.inject(cssVarName, this.id, output), `var ${modulesVarName} = ${JSON.stringify(modulesExports)};`, ); } else {