From 16aca126dc3389394d7417e04a9cba32511d8b59 Mon Sep 17 00:00:00 2001 From: mcha <> Date: Mon, 14 Jun 2021 00:28:45 +0700 Subject: [PATCH] fix: replaceAll not avaialble in node 14 replace instead of replaceAll since it's not available in eariler node versions --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3717c7e..effcaea 100644 --- a/src/index.js +++ b/src/index.js @@ -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;