Skip to content
File

Blob: samples/extensions/burrito-shop.capnp

682 bytes
1using Workerd = import "/workerd/workerd.capnp";
2 
3const 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);