Skip to content

Commit

Permalink
refactor(telemetry): remove browser-specific code from telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduy1407 committed Dec 1, 2023
1 parent 7f520f9 commit b62e54a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/cli/telemetry/telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { isOutputTargetHydrate, WWW } from '@utils';

import { IS_BROWSER_ENV } from '../../compiler/sys/environment';
import type * as d from '../../declarations';
import { readConfig, updateConfig, writeConfig } from '../family-config';
import { CoreCompiler } from '../load-compiler';
Expand Down Expand Up @@ -145,7 +144,6 @@ export const prepareData = async (
const build = coreCompiler.buildId || 'unknown';
const has_app_pwa_config = hasAppTarget(config);
const anonymizedConfig = anonymizeConfigForTelemetry(config);
const is_browser_env = IS_BROWSER_ENV;

return {
arguments: config.flags.args,
Expand All @@ -155,7 +153,6 @@ export const prepareData = async (
cpu_model,
duration_ms,
has_app_pwa_config,
is_browser_env,
os_name,
os_version,
packages,
Expand Down
1 change: 0 additions & 1 deletion src/declarations/rindo-private.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2635,7 +2635,6 @@ export interface TrackableData {
cpu_model: string | undefined;
duration_ms: number | undefined;
has_app_pwa_config: boolean;
is_browser_env: boolean;
os_name: string | undefined;
os_version: string | undefined;
packages: string[];
Expand Down

0 comments on commit b62e54a

Please sign in to comment.