File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ const buildCssModulesJS2 = async (cssFullPath) => {
45
45
const patchedClass = exports [ originClass ] . name ;
46
46
cssModulesJSON [ camelCase ( originClass ) ] = classPrefix + patchedClass ;
47
47
finalCssContent = finalCssContent . replace (
48
- new RegExp ( patchedClass , 'g' ) ,
49
- classPrefix + patchedClass
48
+ new RegExp ( `\\. ${ patchedClass } ` , 'g' ) ,
49
+ '.' + classPrefix + patchedClass
50
50
)
51
51
} ) ;
52
52
const classNames = JSON . stringify ( cssModulesJSON , null , 2 ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " esbuild-css-modules-plugin" ,
3
- "version" : " 2.1.4 " ,
3
+ "version" : " 2.1.5 " ,
4
4
"description" : " A esbuild plugin to bundle css modules into js(x)/ts(x)." ,
5
5
"main" : " index.js" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments