From 9ac1fff1898194e28a64ec829702183901bed7ed Mon Sep 17 00:00:00 2001 From: Benjamin Atkin Date: Mon, 17 Apr 2023 20:34:49 -0700 Subject: [PATCH] stop incorrectly transforming single quote imports --- builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.js b/builder.js index a5fd4ef..4a2dfd7 100644 --- a/builder.js +++ b/builder.js @@ -61,7 +61,7 @@ export class Builder { return `// append: ${s}\n${match}` } ).replaceAll( - /^\s*import\s+(\{[^}]+\})\s+from\s+("[^"]+"|')/gms, + /^\s*import\s+(\{[^}]+\})\s+from\s+("[^"]+")/gms, (match, p1, p2) => { const vars = p1.replaceAll(' as ', ': ') const importPath = p2.slice(1, -1)