bippy 0.2.21 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,631 @@
1
+ > [!WARNING]
2
+ > ⚠️⚠️⚠️ **this project may break production apps and cause unexpected behavior** ⚠️⚠️⚠️
3
+ >
4
+ > this project uses react internals, which can change at any time. it is not recommended to depend on internals unless you really, _really_ have to. by proceeding, you acknowledge the risk of breaking your own code or apps that use your code.
5
+
6
+ # <img src="https://github.com/aidenybai/bippy/blob/main/.github/assets/bippy.png?raw=true" width="60" align="center" /> bippy
7
+
8
+ [![size](https://img.shields.io/bundlephobia/minzip/bippy?label=gzip&style=flat&colorA=000000&colorB=000000)](https://bundlephobia.com/package/bippy)
9
+ [![version](https://img.shields.io/npm/v/bippy?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/bippy)
10
+ [![downloads](https://img.shields.io/npm/dt/bippy.svg?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/bippy)
11
+
12
+ bippy is a toolkit to **hack into react internals**
13
+
14
+ by default, you cannot access react internals. bippy bypasses this by "pretending" to be react devtools, giving you access to the fiber tree and other internals.
15
+
16
+ - works outside of react – no react code modification needed
17
+ - utility functions that work across modern react (v17-19)
18
+ - no prior react source code knowledge required
19
+
20
+ ```jsx
21
+ import { onCommitFiberRoot, traverseFiber } from 'bippy';
22
+
23
+ onCommitFiberRoot((root) => {
24
+ traverseFiber(root.current, (fiber) => {
25
+ // prints every fiber in the current React tree
26
+ console.log('fiber:', fiber);
27
+ });
28
+ });
29
+ ```
30
+
31
+ ## how it works & motivation
32
+
33
+ bippy allows you to **access** and **use** react fibers **outside** of react components.
34
+
35
+ a react fiber is a "unit of execution." this means react will do something based on the data in a fiber. each fiber either represents a composite (function/class component) or a host (dom element).
36
+
37
+ > here is a [live visualization](https://jser.pro/ddir/rie?reactVersion=18.3.1&snippetKey=hq8jm2ylzb9u8eh468) of what the fiber tree looks like, and here is a [deep dive article](https://jser.dev/2023-07-18-how-react-rerenders/).
38
+
39
+ fibers are useful because they contain information about the react app (component props, state, contexts, etc.). a simplified version of a fiber looks roughly like this:
40
+
41
+ ```typescript
42
+ interface Fiber {
43
+ // component type (function/class)
44
+ type: any;
45
+
46
+ child: Fiber | null;
47
+ sibling: Fiber | null;
48
+
49
+ // stateNode is the host fiber (e.g. DOM element)
50
+ stateNode: Node | null;
51
+
52
+ // parent fiber
53
+ return: Fiber | null;
54
+
55
+ // the previous or current version of the fiber
56
+ alternate: Fiber | null;
57
+
58
+ // saved props input
59
+ memoizedProps: any;
60
+
61
+ // state (useState, useReducer, useSES, etc.)
62
+ memoizedState: any;
63
+
64
+ // contexts (useContext)
65
+ dependencies: Dependencies | null;
66
+
67
+ // effects (useEffect, useLayoutEffect, etc.)
68
+ updateQueue: any;
69
+ }
70
+ ```
71
+
72
+ here, the `child`, `sibling`, and `return` properties are pointers to other fibers in the tree.
73
+
74
+ additionally, `memoizedProps`, `memoizedState`, and `dependencies` are the fiber's props, state, and contexts.
75
+
76
+ while all of the information is there, it's not super easy to work with, and changes frequently across different versions of react. bippy simplifies this by providing utility functions like:
77
+
78
+ - `traverseRenderedFibers` to detect renders and `traverseFiber` to traverse the overall fiber tree
79
+ - _(instead of `child`, `sibling`, and `return` pointers)_
80
+ - `traverseProps`, `traverseState`, and `traverseContexts` to traverse the fiber's props, state, and contexts
81
+ - _(instead of `memoizedProps`, `memoizedState`, and `dependencies`)_
82
+
83
+ however, fibers aren't directly accessible by the user. so, we have to hack our way around to accessing it.
84
+
85
+ luckily, react [reads from a property](https://github.com/facebook/react/blob/6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef/packages/react-reconciler/src/reactFiberDevToolsHook.js#L48) in the window object: `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` and runs handlers on it when certain events happen. this property must exist before react's bundle is executed. this is intended for react devtools, but we can use it to our advantage.
86
+
87
+ here's what it roughly looks like:
88
+
89
+ ```typescript
90
+ interface __REACT_DEVTOOLS_GLOBAL_HOOK__ {
91
+ // list of renderers (react-dom, react-native, etc.)
92
+ renderers: Map<RendererID, reactRenderer>;
93
+
94
+ // called when react has rendered everything for an update and the fiber tree is fully built and ready to
95
+ // apply changes to the host tree (e.g. DOM mutations)
96
+ onCommitFiberRoot: (
97
+ rendererID: RendererID,
98
+ root: FiberRoot,
99
+ commitPriority?: number
100
+ ) => void;
101
+
102
+ // called when effects run
103
+ onPostCommitFiberRoot: (rendererID: RendererID, root: FiberRoot) => void;
104
+
105
+ // called when a specific fiber unmounts
106
+ onCommitFiberUnmount: (rendererID: RendererID, fiber: Fiber) => void;
107
+ }
108
+ ```
109
+
110
+ bippy works by monkey-patching `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` with our own custom handlers. bippy simplifies this by providing utility functions like:
111
+
112
+ - `instrument` to safely patch `window.__REACT_DEVTOOLS_GLOBAL_HOOK__`
113
+ - _(instead of directly mutating `onCommitFiberRoot`, ...)_
114
+ - `secure` to wrap your handlers in a try/catch and determine if handlers are safe to run
115
+ - _(instead of rawdogging `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` handlers, which may crash your app)_
116
+ - `traverseRenderedFibers` to traverse the fiber tree and determine which fibers have actually rendered
117
+ - _(instead of `child`, `sibling`, and `return` pointers)_
118
+ - `traverseFiber` to traverse the fiber tree, regardless of whether it has rendered
119
+ - _(instead of `child`, `sibling`, and `return` pointers)_
120
+ - `setFiberId` / `getFiberId` to set and get a fiber's id
121
+ - _(instead of anonymous fibers with no identity)_
122
+
123
+ ## how to use
124
+
125
+ you can either install via a npm (recommended) or a script tag.
126
+
127
+ this package should be imported before a React app runs. this will add a special object to the global which is used by React for providing its internals to the tool for analysis (React Devtools does the same). as soon as React library is loaded and attached to the tool, bippy starts collecting data about what is going on in React's internals.
128
+
129
+ ```shell
130
+ npm install bippy
131
+ ```
132
+
133
+ or, use via script tag:
134
+
135
+ ```html
136
+ <script src="https://unpkg.com/bippy"></script>
137
+ ```
138
+
139
+ > this will cause bippy to be accessible under a `window.Bippy` global.
140
+
141
+ next, you can use the api to get data about the fiber tree. below is a (useful) subset of the api. for the full api, read the [source code](https://github.com/aidenybai/bippy/blob/main/src/core.ts).
142
+
143
+ ### onCommitFiberRoot
144
+
145
+ a utility function that wraps the `instrument` function and sets the `onCommitFiberRoot` hook.
146
+
147
+ ```typescript
148
+ import { onCommitFiberRoot } from 'bippy';
149
+
150
+ onCommitFiberRoot((root) => {
151
+ console.log('root ready to commit', root);
152
+ });
153
+ ```
154
+
155
+ ### instrument
156
+
157
+ > the underlying implementation for the `onCommitFiberRoot()` function. this is optional, unless you want to plug into more less common, advanced functionality.
158
+
159
+ patches `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` with your handlers. must be imported before react, and must be initialized to properly run any other methods.
160
+
161
+ > use with the `secure` function to prevent uncaught errors from crashing your app.
162
+
163
+ ```typescript
164
+ import { instrument, secure } from 'bippy'; // must be imported BEFORE react
165
+ import * as React from 'react';
166
+
167
+ instrument(
168
+ secure({
169
+ onCommitFiberRoot(rendererID, root) {
170
+ console.log('root ready to commit', root);
171
+ },
172
+ onPostCommitFiberRoot(rendererID, root) {
173
+ console.log('root with effects committed', root);
174
+ },
175
+ onCommitFiberUnmount(rendererID, fiber) {
176
+ console.log('fiber unmounted', fiber);
177
+ },
178
+ })
179
+ );
180
+ ```
181
+
182
+ ### getRDTHook
183
+
184
+ returns the `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` object. great for advanced use cases, such as accessing or modifying the `renderers` property.
185
+
186
+ ```typescript
187
+ import { getRDTHook } from 'bippy';
188
+
189
+ const hook = getRDTHook();
190
+ console.log(hook);
191
+ ```
192
+
193
+ ### traverseRenderedFibers
194
+
195
+ not every fiber in the fiber tree renders. `traverseRenderedFibers` allows you to traverse the fiber tree and determine which fibers have actually rendered.
196
+
197
+ ```typescript
198
+ import { instrument, secure, traverseRenderedFibers } from 'bippy'; // must be imported BEFORE react
199
+ import * as React from 'react';
200
+
201
+ instrument(
202
+ secure({
203
+ onCommitFiberRoot(rendererID, root) {
204
+ traverseRenderedFibers(root, (fiber) => {
205
+ console.log('fiber rendered', fiber);
206
+ });
207
+ },
208
+ })
209
+ );
210
+ ```
211
+
212
+ ### traverseFiber
213
+
214
+ calls a callback on every fiber in the fiber tree.
215
+
216
+ ```typescript
217
+ import { instrument, secure, traverseFiber } from 'bippy'; // must be imported BEFORE react
218
+ import * as React from 'react';
219
+
220
+ instrument(
221
+ secure({
222
+ onCommitFiberRoot(rendererID, root) {
223
+ traverseFiber(root.current, (fiber) => {
224
+ console.log(fiber);
225
+ });
226
+ },
227
+ })
228
+ );
229
+ ```
230
+
231
+ ### traverseProps
232
+
233
+ traverses the props of a fiber.
234
+
235
+ ```typescript
236
+ import { traverseProps } from 'bippy';
237
+
238
+ // ...
239
+
240
+ traverseProps(fiber, (propName, next, prev) => {
241
+ console.log(propName, next, prev);
242
+ });
243
+ ```
244
+
245
+ ### traverseState
246
+
247
+ traverses the state (useState, useReducer, etc.) and effects that set state of a fiber.
248
+
249
+ ```typescript
250
+ import { traverseState } from 'bippy';
251
+
252
+ // ...
253
+
254
+ traverseState(fiber, (next, prev) => {
255
+ console.log(next, prev);
256
+ });
257
+ ```
258
+
259
+ ### traverseEffects
260
+
261
+ traverses the effects (useEffect, useLayoutEffect, etc.) of a fiber.
262
+
263
+ ```typescript
264
+ import { traverseEffects } from 'bippy';
265
+
266
+ // ...
267
+
268
+ traverseEffects(fiber, (effect) => {
269
+ console.log(effect);
270
+ });
271
+ ```
272
+
273
+ ### traverseContexts
274
+
275
+ traverses the contexts (useContext) of a fiber.
276
+
277
+ ```typescript
278
+ import { traverseContexts } from 'bippy';
279
+
280
+ // ...
281
+
282
+ traverseContexts(fiber, (next, prev) => {
283
+ console.log(next, prev);
284
+ });
285
+ ```
286
+
287
+ ### setFiberId / getFiberId
288
+
289
+ set and get a persistent identity for a fiber. by default, fibers are anonymous and have no identity.
290
+
291
+ ```typescript
292
+ import { setFiberId, getFiberId } from 'bippy';
293
+
294
+ // ...
295
+
296
+ setFiberId(fiber);
297
+ console.log('unique id for fiber:', getFiberId(fiber));
298
+ ```
299
+
300
+ ### isHostFiber
301
+
302
+ returns `true` if the fiber is a host fiber (e.g., a DOM node in react-dom).
303
+
304
+ ```typescript
305
+ import { isHostFiber } from 'bippy';
306
+
307
+ if (isHostFiber(fiber)) {
308
+ console.log('fiber is a host fiber');
309
+ }
310
+ ```
311
+
312
+ ### isCompositeFiber
313
+
314
+ returns `true` if the fiber is a composite fiber. composite fibers represent class components, function components, memoized components, and so on (anything that can actually render output).
315
+
316
+ ```typescript
317
+ import { isCompositeFiber } from 'bippy';
318
+
319
+ if (isCompositeFiber(fiber)) {
320
+ console.log('fiber is a composite fiber');
321
+ }
322
+ ```
323
+
324
+ ### getDisplayName
325
+
326
+ returns the display name of the fiber's component, falling back to the component's function or class name if available.
327
+
328
+ ```typescript
329
+ import { getDisplayName } from 'bippy';
330
+
331
+ console.log(getDisplayName(fiber));
332
+ ```
333
+
334
+ ### getType
335
+
336
+ returns the underlying type (the component definition) for a given fiber. for example, this could be a function component or class component.
337
+
338
+ ```jsx
339
+ import { getType } from 'bippy';
340
+ import { memo } from 'react';
341
+
342
+ const RealComponent = () => {
343
+ return <div>hello</div>;
344
+ };
345
+ const MemoizedComponent = memo(() => {
346
+ return <div>hello</div>;
347
+ });
348
+
349
+ console.log(getType(fiberForMemoizedComponent) === RealComponent);
350
+ ```
351
+
352
+ ### getNearestHostFiber / getNearestHostFibers
353
+
354
+ getNearestHostFiber returns the closest host fiber above or below a given fiber. getNearestHostFibers(fiber) returns all host fibers associated with the provided fiber and its subtree.
355
+
356
+ ```jsx
357
+ import { getNearestHostFiber, getNearestHostFibers } from 'bippy';
358
+
359
+ // ...
360
+
361
+ function Component() {
362
+ return (
363
+ <>
364
+ <div>hello</div>
365
+ <div>world</div>
366
+ </>
367
+ );
368
+ }
369
+
370
+ console.log(getNearestHostFiber(fiberForComponent)); // <div>hello</div>
371
+ console.log(getNearestHostFibers(fiberForComponent)); // [<div>hello</div>, <div>world</div>]
372
+ ```
373
+
374
+ ### getTimings
375
+
376
+ returns the self and total render times for the fiber.
377
+
378
+ ```typescript
379
+ // timings don't exist in react production builds
380
+ if (fiber.actualDuration !== undefined) {
381
+ const { selfTime, totalTime } = getTimings(fiber);
382
+ console.log(selfTime, totalTime);
383
+ }
384
+ ```
385
+
386
+ ### getFiberStack
387
+
388
+ returns an array representing the stack of fibers from the current fiber up to the root.
389
+
390
+ ```typescript
391
+ [fiber, fiber.return, fiber.return.return, ...]
392
+ ```
393
+
394
+ ### getMutatedHostFibers
395
+
396
+ returns an array of all host fibers that have committed and rendered in the provided fiber's subtree.
397
+
398
+ ```typescript
399
+ import { getMutatedHostFibers } from 'bippy';
400
+
401
+ console.log(getMutatedHostFibers(fiber));
402
+ ```
403
+
404
+ ### isValidFiber
405
+
406
+ returns `true` if the given object is a valid React Fiber (i.e., has a tag, stateNode, return, child, sibling, etc.).
407
+
408
+ ```typescript
409
+ import { isValidFiber } from 'bippy';
410
+
411
+ console.log(isValidFiber(fiber));
412
+ ```
413
+
414
+ ## examples
415
+
416
+ the best way to understand bippy is to [read the source code](https://github.com/aidenybai/bippy/blob/main/src/core.ts). here are some examples of how you can use it:
417
+
418
+ ### a mini react-scan
419
+
420
+ here's a mini toy version of [`react-scan`](https://github.com/aidenybai/react-scan) that highlights renders in your app.
421
+
422
+ ```javascript
423
+ import {
424
+ instrument,
425
+ isHostFiber,
426
+ getNearestHostFiber,
427
+ traverseRenderedFibers,
428
+ } from 'bippy'; // must be imported BEFORE react
429
+
430
+ const highlightFiber = (fiber) => {
431
+ if (!(fiber.stateNode instanceof HTMLElement)) return;
432
+ // fiber.stateNode is a DOM element
433
+ const rect = fiber.stateNode.getBoundingClientRect();
434
+ const highlight = document.createElement('div');
435
+ highlight.style.border = '1px solid red';
436
+ highlight.style.position = 'fixed';
437
+ highlight.style.top = `${rect.top}px`;
438
+ highlight.style.left = `${rect.left}px`;
439
+ highlight.style.width = `${rect.width}px`;
440
+ highlight.style.height = `${rect.height}px`;
441
+ highlight.style.zIndex = 999999999;
442
+ document.documentElement.appendChild(highlight);
443
+ setTimeout(() => {
444
+ document.documentElement.removeChild(highlight);
445
+ }, 100);
446
+ };
447
+
448
+ /**
449
+ * `instrument` is a function that installs the react DevTools global
450
+ * hook and allows you to set up custom handlers for react fiber events.
451
+ */
452
+ instrument(
453
+ /**
454
+ * `secure` is a function that wraps your handlers in a try/catch
455
+ * and prevents it from crashing the app. it also prevents it from
456
+ * running on unsupported react versions and during production.
457
+ *
458
+ * this is not required but highly recommended to provide "safeguards"
459
+ * in case something breaks.
460
+ */
461
+ secure({
462
+ /**
463
+ * `onCommitFiberRoot` is a handler that is called when react is
464
+ * ready to commit a fiber root. this means that react is has
465
+ * rendered your entire app and is ready to apply changes to
466
+ * the host tree (e.g. via DOM mutations).
467
+ */
468
+ onCommitFiberRoot(rendererID, root) {
469
+ /**
470
+ * `traverseRenderedFibers` traverses the fiber tree and determines which
471
+ * fibers have actually rendered.
472
+ *
473
+ * A fiber tree contains many fibers that may have not rendered. this
474
+ * can be because it bailed out (e.g. `useMemo`) or because it wasn't
475
+ * actually rendered (if <Child> re-rendered, then <Parent> didn't
476
+ * actually render, but exists in the fiber tree).
477
+ */
478
+ traverseRenderedFibers(root, (fiber) => {
479
+ /**
480
+ * `getNearestHostFiber` is a utility function that finds the
481
+ * nearest host fiber to a given fiber.
482
+ *
483
+ * a host fiber for `react-dom` is a fiber that has a DOM element
484
+ * as its `stateNode`.
485
+ */
486
+ const hostFiber = getNearestHostFiber(fiber);
487
+ highlightFiber(hostFiber);
488
+ });
489
+ },
490
+ })
491
+ );
492
+ ```
493
+
494
+ ### a mini why-did-you-render
495
+
496
+ here's a mini toy version of [`why-did-you-render`](https://github.com/welldone-software/why-did-you-render) that logs why components re-render.
497
+
498
+ ```typescript
499
+ import {
500
+ instrument,
501
+ isHostFiber,
502
+ traverseRenderedFibers,
503
+ isCompositeFiber,
504
+ getDisplayName,
505
+ traverseProps,
506
+ traverseContexts,
507
+ traverseState,
508
+ } from 'bippy'; // must be imported BEFORE react
509
+
510
+ instrument(
511
+ secure({
512
+ onCommitFiberRoot(rendererID, root) {
513
+ traverseRenderedFibers(root, (fiber) => {
514
+ /**
515
+ * `isCompositeFiber` is a utility function that checks if a fiber is a composite fiber.
516
+ * a composite fiber is a fiber that represents a function or class component.
517
+ */
518
+ if (!isCompositeFiber(fiber)) return;
519
+
520
+ /**
521
+ * `getDisplayName` is a utility function that gets the display name of a fiber.
522
+ */
523
+ const displayName = getDisplayName(fiber);
524
+ if (!displayName) return;
525
+
526
+ const changes = [];
527
+
528
+ /**
529
+ * `traverseProps` is a utility function that traverses the props of a fiber.
530
+ */
531
+ traverseProps(fiber, (propName, next, prev) => {
532
+ if (next !== prev) {
533
+ changes.push({
534
+ name: `prop ${propName}`,
535
+ prev,
536
+ next,
537
+ });
538
+ }
539
+ });
540
+
541
+ let contextId = 0;
542
+ /**
543
+ * `traverseContexts` is a utility function that traverses the contexts of a fiber.
544
+ * Contexts don't have a "name" like props, so we use an id to identify them.
545
+ */
546
+ traverseContexts(fiber, (next, prev) => {
547
+ if (next !== prev) {
548
+ changes.push({
549
+ name: `context ${contextId}`,
550
+ prev,
551
+ next,
552
+ contextId,
553
+ });
554
+ }
555
+ contextId++;
556
+ });
557
+
558
+ let stateId = 0;
559
+ /**
560
+ * `traverseState` is a utility function that traverses the state of a fiber.
561
+ *
562
+ * State don't have a "name" like props, so we use an id to identify them.
563
+ */
564
+ traverseState(fiber, (value, prevValue) => {
565
+ if (next !== prev) {
566
+ changes.push({
567
+ name: `state ${stateId}`,
568
+ prev,
569
+ next,
570
+ });
571
+ }
572
+ stateId++;
573
+ });
574
+
575
+ console.group(
576
+ `%c${displayName}`,
577
+ 'background: hsla(0,0%,70%,.3); border-radius:3px; padding: 0 2px;'
578
+ );
579
+ for (const { name, prev, next } of changes) {
580
+ console.log(`${name}:`, prev, '!==', next);
581
+ }
582
+ console.groupEnd();
583
+ });
584
+ },
585
+ })
586
+ );
587
+ ```
588
+
589
+ ## glossary
590
+
591
+ - fiber: a "unit of execution" in react, representing a component or dom element
592
+ - commit: the process of applying changes to the host tree (e.g. DOM mutations)
593
+ - render: the process of building the fiber tree by executing component function/classes
594
+ - host tree: the tree of UI elements that react mutates (e.g. DOM elements)
595
+ - reconciler (or "renderer"): custom bindings for react, e.g. react-dom, react-native, react-three-fiber, etc to mutate the host tree
596
+ - `rendererID`: the id of the reconciler, starting at 1 (can be from multiple reconciler instances)
597
+ - `root`: a special `FiberRoot` type that contains the container fiber (the one you pass to `ReactDOM.createRoot`) in the `current` property
598
+ - `onCommitFiberRoot`: called when react is ready to commit a fiber root
599
+ - `onPostCommitFiberRoot`: called when react has committed a fiber root and effects have run
600
+ - `onCommitFiberUnmount`: called when a fiber unmounts
601
+
602
+ ## development
603
+
604
+ pre-requisite: you should understand how react works internally. if you don't, please give this [series of articles](https://jser.dev/series/react-source-code-walkthrough) a read.
605
+
606
+ we use a pnpm monorepo, get started by running:
607
+
608
+ ```shell
609
+ pnpm install
610
+ # create dev builds
611
+ pnpm run dev
612
+ # run unit tests
613
+ pnpm run test
614
+ ```
615
+
616
+ you can ad-hoc test by running `pnpm run dev` in the `/kitchen-sink` directory.
617
+
618
+ ```shell
619
+ cd kitchen-sink
620
+ pnpm run dev
621
+ ```
622
+
623
+ ## misc
624
+
625
+ we use this project internally in [react-scan](https://github.com/aidenybai/react-scan), which is deployed with proper safeguards to ensure it's only used in development or error-guarded in production.
626
+
627
+ while i maintain this specifically for react-scan, those seeking more robust solutions might consider [its-fine](https://github.com/pmndrs/its-fine) for accessing fibers within react using hooks, or [react-devtools-inline](https://www.npmjs.com/package/react-devtools-inline) for a headful interface.
628
+
629
+ if you plan to use this project beyond experimentation, please review [react-scan's source code](https://github.com/aidenybai/react-scan) to understand our safeguarding practices.
630
+
631
+ the original bippy character is owned and created by [@dairyfreerice](https://www.instagram.com/dairyfreerice). this project is not related to the bippy brand, i just think the character is cute.
@@ -1,4 +1,4 @@
1
- import { isClientEnvironment, getRDTHook } from './chunk-HAT4WUYT.js';
1
+ import { isClientEnvironment, getRDTHook } from './chunk-FVT6V2TD.js';
2
2
 
3
3
  /**
4
4
  * @license bippy
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDUWBSZCN_cjs = require('./chunk-DUWBSZCN.cjs');
3
+ var chunkXRTKUBYA_cjs = require('./chunk-XRTKUBYA.cjs');
4
4
 
5
5
  /**
6
6
  * @license bippy
@@ -13,8 +13,8 @@ var chunkDUWBSZCN_cjs = require('./chunk-DUWBSZCN.cjs');
13
13
 
14
14
  // src/index.ts
15
15
  try {
16
- if (chunkDUWBSZCN_cjs.isClientEnvironment()) {
17
- chunkDUWBSZCN_cjs.getRDTHook();
16
+ if (chunkXRTKUBYA_cjs.isClientEnvironment()) {
17
+ chunkXRTKUBYA_cjs.getRDTHook();
18
18
  }
19
19
  } catch {
20
20
  }