Skip to content

Commit

Permalink
add an explanation for shouldPrintComment in Babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed Jan 23, 2024
1 parent 42a83a2 commit 08c5184
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// modified Babel's default to account for __PURE__ annotations
// https://babeljs.io/docs/options#shouldprintcomment
const shouldPrintComment = (val) => /@license|@preserve|[#@]__PURE__/.test(val);

module.exports = {
Expand Down

0 comments on commit 08c5184

Please sign in to comment.