Skip to content

Commit 423fd0d

Browse files
committed
Bundle.
1 parent 4a0e99f commit 423fd0d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

packages/sdk/combined-browser/src/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/**
2+
* This is the API reference for the LaunchDarkly Client-Side SDK for JavaScript with included Observability.
3+
*
4+
* This SDK is intended for use in browser environments. It includes the observability and session replay plugins.
5+
*
6+
* In typical usage, you will call {@link initialize} once at startup time to obtain an instance of
7+
* {@link LDClient}, which provides access to all of the SDK's functionality.
8+
*
9+
* For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/sdk/client-side/javascript).
10+
*
11+
* @packageDocumentation
12+
*/
113
import { initialize as initializeJsClient, LDClient, LDOptions } from '@launchdarkly/js-client-sdk';
214
import Observability from '@launchdarkly/observability';
315
import SessionReplay from '@launchdarkly/session-replay';
@@ -8,6 +20,9 @@ export * from '@launchdarkly/js-client-sdk';
820
type ObserveOptions = ConstructorParameters<typeof Observability>[1];
921
type RecordOptions = ConstructorParameters<typeof SessionReplay>[1];
1022

23+
export { LDObserve } from '@launchdarkly/observability';
24+
export { LDRecord } from '@launchdarkly/session-replay';
25+
1126
/**
1227
* Initialization options for the browser SDK and observability plugins.
1328
*/

packages/sdk/combined-browser/tsup.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ export default defineConfig({
1111
splitting: false,
1212
sourcemap: true,
1313
clean: true,
14-
noExternal: ['@launchdarkly/js-sdk-common', '@launchdarkly/js-client-sdk-common'],
14+
noExternal: [
15+
'@launchdarkly/js-sdk-common',
16+
'@launchdarkly/js-client-sdk-common',
17+
'@launchdarkly/observability',
18+
'@launchdarkly/session-replay',
19+
'@launchdarkly/js-client-sdk',
20+
],
1521
dts: true,
1622
metafile: true,
1723
esbuildOptions(opts) {

0 commit comments

Comments
 (0)