You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the `@polywrap/client-config-builder-js` package to build a CoreClientConfig for your project, then use the PolywrapCoreClient [constructor](#constructor) to instantiate the client with your config.
// customize URI resolution by adding redirects and embedded wrappers/packages
61
-
resolver:
62
-
RecursiveResolver.from(
63
-
PackageToWrapperCacheResolver.from(
64
-
[
65
-
StaticResolver.from([
66
-
...redirects,
67
-
...wrappers,
68
-
...packages,
69
-
]),
70
-
...this.config.resolvers,
71
-
newExtendableUriResolver(),
72
-
],
73
-
newWrapperCache()
74
-
)
75
-
),
76
-
// tracer configuration - see @polywrap/tracing-js package
77
-
tracerConfig: { ... },
78
-
};
79
-
```
80
-
```ts
81
-
// create a client by modifying the default configuration bundle
82
-
const client =newPolywrapCoreClient(config);
18
+
### Instantiate
19
+
20
+
Use the `@polywrap/client-config-builder-js` package to build a CoreClientConfig for your project, then use the PolywrapCoreClient [constructor](#constructor) to instantiate the client with your config.
0 commit comments