Skip to content

Commit 33782e9

Browse files
authored
V222 bugfix (#26)
* v222_bugfix * bugfix
1 parent be4bee9 commit 33782e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ const buildInjectCode = (injectToSelector = 'head', css, digest, { urlFullPathMa
7373
root = document.head;
7474
console.warn('[esbuild-css-modules-plugin]', 'can not find element \`${injectToSelector}\`, append style to', root);
7575
}
76-
if (!root.querySelector('#${digest}')) {
76+
if (!root.querySelector('#_${digest}')) {
7777
const el = document.createElement('style');
78-
el.id = '${digest}';
78+
el.id = '_${digest}';
7979
el.textContent = css;
8080
root.appendChild(el);
8181
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esbuild-css-modules-plugin",
3-
"version": "2.2.2",
3+
"version": "2.2.3",
44
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)