Skip to content

Commit

Permalink
CAPI-235(fix): css not injected in esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasingh-anyline committed Jun 17, 2024
1 parent 8272b50 commit 22e0cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esbuild/injectCSSPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const injectCSSPlugin = baseDir => {
return;
}
const regex =
/(\w+)\.id="anyline-guidance-sdk-style",\1\.textContent=""/;
/([$\w]+)\.id="anyline-guidance-sdk-style",\1\.textContent=""/;
const replacement = `$1.id="anyline-guidance-sdk-style",$1.textContent=\`${allCSS}\``;
const updatedData = data.replace(regex, replacement);
fs.writeFile(filePath, updatedData, 'utf8', err => {
Expand Down

0 comments on commit 22e0cd2

Please sign in to comment.