From bd0b60385bead177c27736ac8baf402c10076568 Mon Sep 17 00:00:00 2001 From: mog422 Date: Sat, 20 Jul 2024 22:05:18 +0900 Subject: [PATCH] fix: use compileStyleAsync instead of compileStyle --- src/stylePostLoader.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/stylePostLoader.ts b/src/stylePostLoader.ts index 20a8645ac..853cf3295 100644 --- a/src/stylePostLoader.ts +++ b/src/stylePostLoader.ts @@ -2,13 +2,14 @@ import * as qs from 'querystring' import type { LoaderDefinitionFunction } from 'webpack' import { compiler } from './compiler' -const { compileStyle } = compiler +const { compileStyleAsync } = compiler // This is a post loader that handles scoped CSS transforms. // Injected right before css-loader by the global pitcher (../pitch.js) // for any