diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index e685e58..5b22ec0 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -1,5 +1,11 @@ # esbuild-plugin-react18 +## 0.2.3 + +### Patch Changes + +- Use negative lookbehind to avoid renaming css variables + ## 0.2.2 ### Patch Changes diff --git a/lib/package.json b/lib/package.json index 6b335e1..c1dc724 100644 --- a/lib/package.json +++ b/lib/package.json @@ -2,7 +2,7 @@ "name": "esbuild-plugin-react18", "author": "Mayank Kumar Chaudhari ", "private": false, - "version": "0.2.2", + "version": "0.2.3", "description": "Unlock the Potential of React Server Components! Harness the power of an ESBuild plugin designed for crafting libraries compatible with RSC (React18 Server Components).", "license": "MPL-2.0", "main": "./dist/index.js", diff --git a/lib/src/index.ts b/lib/src/index.ts index 38f46c3..5cc1768 100644 --- a/lib/src/index.ts +++ b/lib/src/index.ts @@ -173,7 +173,7 @@ function onEndCallBack(result: BuildResult, options: React18PluginOptions, write const v1 = jsxMatches[index] .replace(regExp2replace2GetVar, "") .replace(regExp2replace2GetVar0, ""); - txt = txt.replace(new RegExp(`\\b${v1}\\b`, "g"), importVarName); + txt = txt.replace(new RegExp(`(?