Add edge-light
and worker
to vercel edge bundling (#7103)
This commit is contained in:
parent
b6935e6ac5
commit
c91e837e96
2 changed files with 7 additions and 0 deletions
5
.changeset/pretty-planets-wink.md
Normal file
5
.changeset/pretty-planets-wink.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/vercel': minor
|
||||
---
|
||||
|
||||
Add `edge-light` and `worker` import condition for worker bundling
|
|
@ -119,6 +119,8 @@ export default function vercelEdge({
|
|||
await esbuild.build({
|
||||
target: 'es2020',
|
||||
platform: 'browser',
|
||||
// https://runtime-keys.proposal.wintercg.org/#edge-light
|
||||
conditions: ['edge-light', 'worker', 'browser'],
|
||||
entryPoints: [entryPath],
|
||||
outfile: entryPath,
|
||||
allowOverwrite: true,
|
||||
|
|
Loading…
Reference in a new issue