Skip to content

Commit 6022a79

Browse files
dirty fix of string literal complex of object expression under js obj
1 parent c26b679 commit 6022a79

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/builder-web-react/react-inline-css-widget/react-inline-css-module-builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
Return,
2020
ScopedVariableNamer,
2121
StringLiteral,
22+
TemplateLiteral,
2223
} from "coli";
2324
import * as css from "@web-builder/styles";
2425
import { react_imports } from "../react-import-specifications";
@@ -100,7 +101,7 @@ export class ReactCssInJSBuilder {
100101
(key) =>
101102
new PropertyAssignment({
102103
name: key as unknown as Identifier,
103-
initializer: new StringLiteral(reactStyleData[key]),
104+
initializer: new TemplateLiteral(reactStyleData[key]),
104105
})
105106
);
106107

0 commit comments

Comments
 (0)