orenelbaum / babel-plugin-solid-undestructure

A Babel plugin for SolidJS that allows you to destructure component props without losing reactivity.
95 stars 3 forks source link

Added compilation for functions that start with uppercase #17

Open gandazgul opened 1 month ago

gandazgul commented 1 month ago

Added an option uppercaseFuncNames that defaults to false, if set to true, it will compile functions that start with an uppercase letter and have props with object destructuring.

pnpm test

> babel-plugin-solid-undestructure@1.1.0 test /babel-plugin-solid-undestructure
> uvu tests

add-merge-props-call.test.js
•   (1 / 1)

check-func-capital-letter.test.js
•   (1 / 1)

check-func.test.js
•   (1 / 1)

get-props-info.test.js
•   (1 / 1)

handle-remaining-plugin-imports.test.js
•   (1 / 1)

index.test.js
•   (1 / 1)

remove-wrapping-ctf.test.js
•   (1 / 1)

transform-prop-references.test.js
•   (1 / 1)

validate-func.test.js
•   (1 / 1)

  Total:     9
  Passed:    9
  Skipped:   0
  Duration:  184.82ms
what-the-diff[bot] commented 1 month ago

PR Summary