Skip to content

Commit

Permalink
fix: replaceAll not avaialble in node 14
Browse files Browse the repository at this point in the history
replace instead of replaceAll since it's not available in eariler node versions
  • Loading branch information
mcha committed Jun 13, 2021
1 parent 3e0e90f commit 16aca12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function litTailwindcss(options = defaultOptions) {
if (result.css) {
return code.replace(
options.placeholder,
result.css.replaceAll(':', '\\:'),
result.css.replace(/:/g, '\\:'),
);
}
return null;
Expand Down

0 comments on commit 16aca12

Please sign in to comment.