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 637424d4496..e5e329d3380 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,6 +5,7 @@ import { RollupOptions } from 'rollup'; import { rollup, type RollupBuild } from 'rollup'; import { + STENCIL_APP_DATA_ID, STENCIL_HYDRATE_FACTORY_ID, STENCIL_INTERNAL_HYDRATE_ID, STENCIL_MOCK_DOC_ID, @@ -50,6 +51,7 @@ export const generateHydrateApp = async ( const packageDir = join(config.sys.getCompilerExecutingPath(), '..', '..'); const input = join(packageDir, 'internal', 'hydrate', 'runner.js'); const mockDoc = join(packageDir, 'mock-doc', 'index.js'); + const appData = join(packageDir, 'internal', 'app-data', 'index.js'); const rollupOptions: RollupOptions = { ...config.rollupConfig.inputOptions, @@ -67,6 +69,9 @@ export const generateHydrateApp = async ( if (id === STENCIL_MOCK_DOC_ID) { return mockDoc; } + if (id === STENCIL_APP_DATA_ID) { + return appData; + } return null; }, load(id) { diff --git a/src/runtime/mode.ts b/src/runtime/mode.ts index 515decfa04d..90efb713dcf 100644 --- a/src/runtime/mode.ts +++ b/src/runtime/mode.ts @@ -1,4 +1,3 @@ -// @ts-ignore import { getHostRef, modeResolutionChain } from '@platform'; import type * as d from '../declarations';