Skip to content

Commit

Permalink
more JSDoc n stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed May 15, 2024
1 parent 90d23d6 commit 271bdf6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { updateStencilCoreImports } from '../../transformers/update-stencil-core
import { getHydrateBuildConditionals } from './hydrate-build-conditionals';

/**
* TODO
* Marshall some Rollup options for the hydrate factory and then pass it to our
* {@link bundleOutput} helper
*
* @param config
* @param compilerCtx
* @param buildCtx
* @param appFactoryEntryCode
* @param config a validated Stencil configuration
* @param compilerCtx the current compiler context
* @param buildCtx the current build context
* @param appFactoryEntryCode an entry code for the app factory
* @returns a promise wrapping a rollup build object
*/
export const bundleHydrateFactory = async (
config: d.ValidatedConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getBuildFeatures, updateBuildConditionals } from '../../app-core/app-da
*
* @param config a validated Stencil configuration
* @param cmps component metadata
* @returns a populated build conditional object
*/
export const getHydrateBuildConditionals = (config: d.ValidatedConfig, cmps: d.ComponentCompilerMeta[]) => {
const build = getBuildFeatures(cmps) as d.BuildConditionals;
Expand Down
6 changes: 4 additions & 2 deletions src/runtime/update-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,10 @@ const emitLifecycleEvent = (elm: EventTarget, lifecycleName: string) => {
};

/**
* TODO
* @param elm
* Set the hydrated flag on a DOM element
*
* @param elm a reference to a DOM element
* @returns undefined
*/
const addHydratedFlag = (elm: Element) =>
BUILD.hydratedClass
Expand Down

0 comments on commit 271bdf6

Please sign in to comment.