Skip to content

Commit

Permalink
fix(build): fix build-www rewriteImports to always rewrite flow modules
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Apr 30, 2024
1 parent f596b1b commit 2c3654b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/www/rewriteImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ async function transformFlowFileContents(source) {
/ \* @flow strict/g,
' * @flow strict\n * @generated\n * @oncall lexical_web_text_editor',
);
// Let the transform know we actually did something.
// Could not figure out the right way to update the
// docblock without an in-place update
context.addLeadingComments(node, '');
}
},
}),
Expand Down

0 comments on commit 2c3654b

Please sign in to comment.