-
-
Notifications
You must be signed in to change notification settings - Fork 89
Closed as not planned
Description
Describe the bug
开发环境rspack css-in-js emotion 设置了autoLabel选项,但是实际展示的类名中还是类似css-14zxgb1,无法快速定位
URL to minimal reproduction
参考配置rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
// Docs: https://rsbuild.rs/config/
export default defineConfig({
plugins: [
pluginReact({
swcReactOptions: {
importSource: '@emotion/react',
},
}),
],
tools: {
swc: {
jsc: {
experimental: {
plugins: [
[
'@swc/plugin-emotion',
{
autoLabel: 'always',
sourceMap: true,
},
],
],
},
},
},
},
});
export const testCls = css`
font-size: 100px;
font-weight: bold;
`;
Expected behavior
希望展示css类名为xxx-testCls
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels