Skip to content

Commit 16aca12

Browse files
author
mcha
committed
fix: replaceAll not avaialble in node 14
replace instead of replaceAll since it's not available in eariler node versions
1 parent 3e0e90f commit 16aca12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function litTailwindcss(options = defaultOptions) {
3838
if (result.css) {
3939
return code.replace(
4040
options.placeholder,
41-
result.css.replaceAll(':', '\\:'),
41+
result.css.replace(/:/g, '\\:'),
4242
);
4343
}
4444
return null;

0 commit comments

Comments
 (0)