Skip to content

Commit

Permalink
empty out .func dir before repopulating
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 16, 2022
1 parent ab30473 commit 536eb74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ function get_node_version() {
* @param {string} runtime
*/
async function create_function_bundle(builder, entry, dir, runtime) {
fs.rmSync(dir, { force: true, recursive: true });

let base = entry;
while (base !== (base = path.dirname(base)));

Expand Down

0 comments on commit 536eb74

Please sign in to comment.