File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ const browserDeps = Object.keys(
31
31
const nodeDeps = [ ...browserDeps , 'util' , 'path' ] ;
32
32
33
33
/** Resolves the external dependencies for the browser build. */
34
- export function resolveBrowserExterns ( id , importedFrom ) {
34
+ export function resolveBrowserExterns ( id ) {
35
35
return browserDeps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) ) ;
36
36
}
37
37
38
38
/** Resolves the external dependencies for the Node build. */
39
- export function resolveNodeExterns ( id , importedFrom ) {
39
+ export function resolveNodeExterns ( id ) {
40
40
return nodeDeps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) ) ;
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ import * as node from '../platform_node/node_format_json';
19
19
import * as browser from '../platform_browser/browser_format_json' ;
20
20
import { isNode } from '@firebase/util' ;
21
21
22
+ // This file provides additional platform specific APIs. It acts an add on to
23
+ // "platform.ts" and exists separately to avoid circular dependency issues with
24
+ // ts-node.
25
+
22
26
/** Formats an object as a JSON string, suitable for logging. */
23
27
export function formatJSON ( value : unknown ) : string {
24
28
return isNode ( ) ? node . formatJSON ( value ) : browser . formatJSON ( value ) ;
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ import * as node from '../platform_node/node_random_bytes';
19
19
import * as browser from '../platform_browser/browser_random_bytes' ;
20
20
import { isNode } from '@firebase/util' ;
21
21
22
+ // This file provides additional platform specific APIs. It acts an add on to
23
+ // "platform.ts" and exists separately to avoid circular dependency issues with
24
+ // ts-node.
25
+
22
26
/**
23
27
* Generates `nBytes` of random bytes.
24
28
*
You can’t perform that action at this time.
0 commit comments