ezfw-core 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -767,7 +767,8 @@ function generateHydrationScript(islands, isDev) {
|
|
|
767
767
|
return '';
|
|
768
768
|
}
|
|
769
769
|
const islandsJson = JSON.stringify(islands);
|
|
770
|
-
|
|
770
|
+
// Use package name for Vite to resolve from node_modules
|
|
771
|
+
const runtimePath = isDev ? 'ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
771
772
|
// Use hydrate.js for SSR - it doesn't import CSS directly, avoiding MIME type issues
|
|
772
773
|
const frameworkPath = isDev ? '/hydrate.js' : '/assets/hydrate.js';
|
|
773
774
|
return `<script type="module">
|
|
@@ -978,7 +978,8 @@ function generateHydrationScript(
|
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
const islandsJson = JSON.stringify(islands);
|
|
981
|
-
|
|
981
|
+
// Use package name for Vite to resolve from node_modules
|
|
982
|
+
const runtimePath = isDev ? 'ezfw-core/islands/runtime.ts' : '/assets/islands-runtime.js';
|
|
982
983
|
// Use hydrate.js for SSR - it doesn't import CSS directly, avoiding MIME type issues
|
|
983
984
|
const frameworkPath = isDev ? '/hydrate.js' : '/assets/hydrate.js';
|
|
984
985
|
|