Skip to content

Commit

Permalink
fix: externalize some vercel adapter deps
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jan 12, 2022
1 parent 63435e4 commit 82ba5cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-mice-whisper.md
@@ -0,0 +1,5 @@
---
'@presta/adapter-vercel': patch
---

Externalize some deps
2 changes: 1 addition & 1 deletion packages/adapter-vercel/index.ts
Expand Up @@ -72,7 +72,7 @@ module.exports = async (req, res) => {
target: ['node12'],
minify: true,
allowOverwrite: true,
// external: Object.keys(pkg.dependencies || {}),
external: ['mime-types', 'raw-body'],
bundle: true,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Expand Up @@ -26,7 +26,7 @@
"esbuild": "^0.14.11",
"fs-extra": "^9.0.1",
"premove": "^4.0.0",
"presta": "^0.43.8",
"presta": "workspace:^0.43.8",
"regexparam": "^1.3.0"
},
"devDependencies": {
Expand Down

0 comments on commit 82ba5cb

Please sign in to comment.