Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jan 19, 2024
1 parent 3bf40fc commit bb5ba9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/utils/building/detect-dev-changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import {
EntrypointGroup,
OutputAsset,
OutputFile,
InternalConfig,
} from '~/types';
import { every } from '~/core/utils/arrays';
import { normalizePath } from '~/core/utils/paths';
import { findEntrypoints } from '../build/findEntrypoints';

/**
* Compare the changed files vs the build output and determine what kind of reload needs to happen:
Expand Down Expand Up @@ -100,6 +102,15 @@ export function detectDevChanges(
};
}

export async function detectEntrypointChanges(
config: InternalConfig,
): Promise<DevModeChange[]> {
const newEntries = await findEntrypoints(config);
const oldEntries = currentOutput.steps.flatMap((step) => step.entrypoints);
const addedEntries = newEntries;
const removedEntries = [];
}

/**
* For a single change, return all the step of the build output that were effected by it.
*/
Expand Down

0 comments on commit bb5ba9f

Please sign in to comment.