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
- const runtimePath = isDev ? '/ez/islands/runtime.ts' : '/assets/islands-runtime.js';
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
- const runtimePath = isDev ? '/ez/islands/runtime.ts' : '/assets/islands-runtime.js';
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezfw-core",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "Ez Framework - A declarative component framework for building modern web applications",
5
5
  "type": "module",
6
6
  "main": "./core/ez.ts",