Skip to content

Commit 917e7a2

Browse files
Jake ChampionJakeChampion
authored andcommitted
add note about how to support sourcemaps
1 parent 04e32b2 commit 917e7a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/precompile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const PREAMBLE = `;{
2626
const POSTAMBLE = "}";
2727

2828
// TODO: This should also detect and update sourcemaps if they are present, otherwise the sourcemaps would be incorrect.
29+
// We could use https://github.com/rich-harris/magic-string to create and/or update sourcemaps
2930
//
3031
/// Emit a block of javascript that will pre-compile the regular expressions given. As spidermonkey
3132
/// will intern regular expressions, duplicating them at the top level and testing them with both

0 commit comments

Comments
 (0)