> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# compiler: SDK module resolvers

> SDK module resolvers: the declaration and description of each of the 2 exports of @eco-incorp/sauce/compiler.

`@eco-incorp/sauce/compiler` exports the compiler's `compile` behind a readiness check, `ready()` for a browser, and `resolveSdkModule`/`resolveSdkPackage`, which serve the SDK's SauceScript libraries (`@sauce/token`, `@sauce/router`) and ABIs to a compile. It re-exports the compiler's option, result and account manifest types. The compiler's own options and results are documented under [@eco-incorp/sauce-compiler](https://docs.eco.com/sauce-sdk/compiler/api.md).

```typescript theme={null}
import { compile, ready, resolveSdkModule, resolveSdkPackage } from "@eco-incorp/sauce/compiler";
```

Generated from the type declarations of `@eco-incorp/sauce`.

### `resolveSdkModule`

*Function* · `@eco-incorp/sauce/compiler`

The bytes of an SDK module: a standard-library file, an engine ABI or a protocol ABI twin.
`undefined` for anything else, which is the compiler's "nothing at this path".

```typescript theme={null}
export declare function resolveSdkModule(path: string): Uint8Array | undefined;
```

### `resolveSdkPackage`

*Function* · `@eco-incorp/sauce/compiler`

The entry path of a standard-library package (`@sauce/token`, `@sauce/router`), under
`SDK_STD_ROOT`, or `undefined` to decline any other specifier.

The entry is the package's `module`, else `main`, else `index.js`. Each package's `main` is a
neutral base (`token.js`, `router.js`) the compiler suffixes per target (`token.evm.js`).

```typescript theme={null}
export declare function resolveSdkPackage(specifier: string): string | undefined;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.