Skip to content

Commit

Permalink
fix(swc): make sure regenerator-runtime is always inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed May 18, 2021
1 parent 8f0f4d9 commit c9c6114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const swcBug1461Match = /var regeneratorRuntime\d?\s*=\s*require\(["'`]regenerat
const swcBug1461MatchReference = /regeneratorRuntime\d\./g;
const unicodeEscape = /(\\+)u\{([0-9a-fA-F]+)\}/g;

/**
/**¨
* TODO: Remove this when https://github.com/swc-project/swc/issues/1227 has been resolved
*/
function workAroundSwcBug1227(str: string): string {
Expand Down

0 comments on commit c9c6114

Please sign in to comment.