From f15e41989a46efbe1f2cfe1867933210a317f173 Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Mon, 22 Apr 2024 17:17:15 +0700 Subject: [PATCH] revert unnecessary namespace --- packages/pigment-css-react/src/utils/preprocessor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pigment-css-react/src/utils/preprocessor.ts b/packages/pigment-css-react/src/utils/preprocessor.ts index da6c09ae..816e68d7 100644 --- a/packages/pigment-css-react/src/utils/preprocessor.ts +++ b/packages/pigment-css-react/src/utils/preprocessor.ts @@ -1,5 +1,5 @@ import type { Element } from 'stylis'; -import { serialize, compile, stringify, middleware, namespace } from 'stylis'; +import { serialize, compile, stringify, middleware } from 'stylis'; import rtlPlugin from 'stylis-plugin-rtl'; import { type PluginCustomOptions } from './cssFnValueToVariable'; @@ -21,9 +21,9 @@ function globalSelector(element: Element) { function getSerializer(includeRtl?: boolean) { if (!includeRtl) { - return middleware([globalSelector, namespace, stringify]); + return middleware([globalSelector, stringify]); } - return middleware([globalSelector, namespace, rtlPlugin, stringify]); + return middleware([globalSelector, rtlPlugin, stringify]); } const serializer = getSerializer();