From eacb43ac6437833d829e048b1cb2092637ec0a2a Mon Sep 17 00:00:00 2001 From: SuttonJack Date: Mon, 10 Apr 2023 19:36:16 -0400 Subject: [PATCH] Add webpack loader support for '.css.ts' imports --- packages/next/src/build/webpack/loaders/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/build/webpack/loaders/utils.ts b/packages/next/src/build/webpack/loaders/utils.ts index 7437f3d30d87c..4367ac270a702 100644 --- a/packages/next/src/build/webpack/loaders/utils.ts +++ b/packages/next/src/build/webpack/loaders/utils.ts @@ -13,7 +13,7 @@ export function isClientComponentModule(mod: { return hasClientDirective || imageRegex.test(mod.resource) } -export const regexCSS = /\.(css|scss|sass)(\?.*)?$/ +export const regexCSS = /\.(css|scss|sass|css\.ts)(\?.*)?$/ export function getActions(mod: { resource: string