Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 96b9a82

Browse files
committed
Fix inline css missing
1 parent 4de4599 commit 96b9a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/transformer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ export default {
114114
}
115115
}
116116
if (inlineCSS) {
117-
resBody += `\nimport { applyCSS as __applyCSS } from "${
117+
code += `\nimport { applyCSS as __applyCSS } from "${
118118
toLocalPath(alephPkgUri)
119-
}/framework/core/style.ts";\n__applyCSS(${JSON.stringify(specifier)}, ${JSON.stringify(inlineCSS)});`;
119+
}/framework/core/style.ts";\n__applyCSS(${JSON.stringify(specifier)}, ${JSON.stringify(inlineCSS)});\n`;
120120
deps = [...(deps || []), { specifier: alephPkgUri + "/framework/core/style.ts" }] as typeof deps;
121121
}
122122
clientDependencyGraph.mark(specifier, { deps });
@@ -128,7 +128,7 @@ export default {
128128
}
129129
m.sourcesContent = [rawCode];
130130
resBody = code +
131-
`\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(JSON.stringify(m))}`;
131+
`\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(JSON.stringify(m))}\n`;
132132
} catch {
133133
log.warn(`Failed to add source map for '${specifier}'`);
134134
resBody = code;

0 commit comments

Comments
 (0)