File
Blob: samples/extensions/burrito-shop.capnp
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const extension :Workerd.Extension = ( |
| 4 | modules = [ |
| 5 | # this module will be directly importable by the user |
| 6 | ( name = "burrito-shop:burrito-shop", esModule = embed "burrito-shop.js" ), |
| 7 | # internal modules can be imported only by public extension modules |
| 8 | ( name = "burrito-shop-internal:burrito-shop-impl", esModule = embed "burrito-shop-impl.js", internal = true ), |
| 9 | ( name = "burrito-shop-internal:kitchen", esModule = embed "kitchen.js", internal = true ), |
| 10 | # only modules marked as internal can be used for bindings |
| 11 | ( name = "burrito-shop:binding", esModule = embed "binding.js", internal = true ), |
| 12 | ] |
| 13 | ); |