Skip to content

Commit

Permalink
replace regex replacemend logic in iifefyFunctionFile and handle `_…
Browse files Browse the repository at this point in the history
…ENTRIES` declarations

in `iifefyFunctionFile` replace the regex replacement code that was present to prepare the
file contents to be embedded in the iife with more proper AST code modding

as part of this change make also sure that `_ENTRIES` identifiers are not modified if they
were actually declared inside the function file (as it happens in older Vercel CLI releases)
  • Loading branch information
dario-piotrowicz committed Aug 2, 2024
1 parent 2115b9e commit 895cd66
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 565 deletions.
Loading

0 comments on commit 895cd66

Please sign in to comment.