File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import MagicString from "magic-string";
4
4
import { simple as simpleWalk } from "acorn-walk" ;
5
5
6
6
const PREAMBLE = `;{ const precompileRegex = (r) => { r.exec('a'); r.exec('\\u1000'); }; ` ;
7
- const POSTAMBLE = "; };" ;
7
+ const POSTAMBLE = "; }; " ;
8
8
9
9
/// Emit a block of javascript that will pre-compile the regular expressions given. As spidermonkey
10
10
/// will intern regular expressions, duplicating them at the top level and testing them with both
@@ -35,7 +35,7 @@ export function precompile(source, filename = "<input>") {
35
35
transpiledPattern = pattern ;
36
36
}
37
37
const transpiledRegex = `/${ transpiledPattern } /${ regex . flags } ` ;
38
- precompileCalls . push ( `precompile(${ transpiledRegex } ); ` ) ;
38
+ precompileCalls . push ( `precompile(${ transpiledRegex } )` ) ;
39
39
magicString . overwrite ( node . start , node . end , tranpiledRegex ) ;
40
40
} ,
41
41
} ) ;
You can’t perform that action at this time.
0 commit comments