Converted wrangler example to work on ESM and upgraded it

This commit is contained in:
Alexander Cerutti
2025-01-11 16:20:52 +01:00
parent aae3ad5982
commit 0c128b57de
5 changed files with 48 additions and 75 deletions

View File

@@ -1,13 +1,12 @@
name = "pg-cw-example"
main = "src/index.ts"
compatibility_date = "2023-10-02"
#########################################################################################
# This must be enabled to make passkit-generator compatible with cloudflare workers #
#########################################################################################
node_compat = true
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"
###################################################################
### This is needed to import `.png` files with esm imports. ###