Skip to content

Commit 021b1d0

Browse files
Guy BedfordJakeChampion
authored andcommitted
fixup
1 parent 8d6da69 commit 021b1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/precompile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function precompile(source, filename = "<input>") {
3434
// this then also avoids regex parser bugs being thrown unnecessarily
3535
transpiledPattern = pattern;
3636
}
37-
const transpiledRegex = `/${transpiledPattern}/${regex.flags}`;
37+
const transpiledRegex = `/${transpiledPattern}/${node.regex.flags}`;
3838
precompileCalls.push(`precompile(${transpiledRegex})`);
3939
magicString.overwrite(node.start, node.end, tranpiledRegex);
4040
},

0 commit comments

Comments
 (0)