Skip to content

Commit

Permalink
revert unnecessary namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Apr 22, 2024
1 parent 43b91a3 commit f15e419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pigment-css-react/src/utils/preprocessor.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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();
Expand Down

0 comments on commit f15e419

Please sign in to comment.