Skip to content

Commit

Permalink
properly resolve app-data module
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Aug 27, 2024
1 parent 80b3e86 commit 9f407a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion src/runtime/mode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-ignore
import { getHostRef, modeResolutionChain } from '@platform';

import type * as d from '../declarations';
Expand Down

0 comments on commit 9f407a8

Please sign in to comment.