0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix(cloudflare): esbuild settings for cloudflare (#8788)

---------

Co-authored-by: Jonathan Dunlap <595843+jadbox@users.noreply.github.com>
This commit is contained in:
Alexander Niebuhr 2023-10-10 09:16:32 +02:00 committed by GitHub
parent 90d70eb7c4
commit 0ab6bad7df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---
Adds support for `node:crypto`

View file

@ -339,6 +339,7 @@ Astro's Cloudflare adapter allows you to use any Node.js runtime API supported b
- assert
- AsyncLocalStorage
- Buffer
- Crypto
- Diagnostics Channel
- EventEmitter
- path

View file

@ -283,6 +283,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
'node:assert',
'node:async_hooks',
'node:buffer',
'node:crypto',
'node:diagnostics_channel',
'node:events',
'node:path',
@ -365,6 +366,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
'node:assert',
'node:async_hooks',
'node:buffer',
'node:crypto',
'node:diagnostics_channel',
'node:events',
'node:path',