diff --git a/src/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.ts b/src/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.ts index d327e98b..bf1d4780 100644 --- a/src/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.ts +++ b/src/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.ts @@ -15,7 +15,6 @@ export const bundleHydrateFactory = async ( config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx, - _build: d.BuildConditionals, appFactoryEntryCode: string, ) => { try { diff --git a/src/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.ts b/src/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.ts index 4bd73053..855fbbc9 100644 --- a/src/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.ts +++ b/src/compiler/output-targets/dist-hydrate-script/generate-hydrate-app.ts @@ -5,7 +5,6 @@ import { RollupOptions } from 'rollup'; import { rollup } from 'rollup'; import type * as d from '../../../declarations'; -import { getBuildFeatures, updateBuildConditionals } from '../../app-core/app-data'; import { RINDO_HYDRATE_FACTORY_ID, RINDO_INTERNAL_HYDRATE_ID, RINDO_MOCK_DOC_ID } from '../../bundle/entry-alias-ids'; import { bundleHydrateFactory } from './bundle-hydrate-factory'; import { HYDRATE_FACTORY_INTRO, HYDRATE_FACTORY_OUTRO } from './hydrate-factory-closure'; @@ -72,12 +71,9 @@ export const generateHydrateApp = async ( const generateHydrateFactory = async (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => { if (!buildCtx.hasError) { try { - const cmps = buildCtx.components; - const build = getHydrateBuildConditionals(config, cmps); - const appFactoryEntryCode = await generateHydrateFactoryEntry(buildCtx); - const rollupFactoryBuild = await bundleHydrateFactory(config, compilerCtx, buildCtx, build, appFactoryEntryCode); + const rollupFactoryBuild = await bundleHydrateFactory(config, compilerCtx, buildCtx, appFactoryEntryCode); if (rollupFactoryBuild != null) { const rollupOutput = await rollupFactoryBuild.generate({ format: 'cjs', @@ -118,23 +114,3 @@ const generateHydrateFactoryEntry = async (buildCtx: d.BuildCtx) => { return s.toString(); }; - -const getHydrateBuildConditionals = (config: d.ValidatedConfig, cmps: d.ComponentCompilerMeta[]) => { - const build = getBuildFeatures(cmps) as d.BuildConditionals; - - build.lazyLoad = true; - build.hydrateClientSide = false; - build.hydrateServerSide = true; - - updateBuildConditionals(config, build); - build.lifecycleDOMEvents = false; - build.devTools = false; - build.hotModuleReplacement = false; - build.cloneNodeFix = false; - build.appendChildSlotFix = false; - build.slotChildNodesFix = false; - // TODO(RINDO-854): Remove code related to legacy shadowDomShim field - build.shadowDomShim = false; - - return build; -};