Skip to content

Commit

Permalink
feat: enable the use eszip feature flag for edge functions (#4791)
Browse files Browse the repository at this point in the history
* feat: add use eszip feature flag

Co-authored-by: EwanValentine <EwanValentine@users.noreply.github.com>
Co-authored-by: token-generator-app[bot] <token-generator-app[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 22, 2022
1 parent c0b9722 commit 2cd5d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/deploy/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,13 @@ const bundleEdgeFunctions = async (options) => {
phase: 'start',
})

const { severityCode, success } = await runCoreSteps(['edge_functions_bundling'], { ...options, buffer: true })
const { severityCode, success } = await runCoreSteps(['edge_functions_bundling'], {
...options,
buffer: true,
featureFlags: {
edge_functions_produce_eszip: true,
},
})

if (!success) {
statusCb({
Expand Down
1 change: 1 addition & 0 deletions src/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, js
cwd,
featureFlags: {
functionsBundlingManifest: true,
edge_functions_produce_eszip: true,
},
})

Expand Down

1 comment on commit 2cd5d57

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 222 MB

Please sign in to comment.