@zenithbuild/core 1.3.17 → 1.3.19

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.
@@ -274,8 +274,15 @@ export async function dev(options: DevOptions = {}): Promise<void> {
274
274
  // Runtime MUST be a regular script (not module) to execute synchronously
275
275
  // before the page module script runs and needs its globals
276
276
  const runtimeTag = `<script src="/runtime.js"></script>`
277
+ const importMap = `<script type="importmap">
278
+ {
279
+ "imports": {
280
+ "@zenithbuild/runtime": "/runtime.js"
281
+ }
282
+ }
283
+ </script>`
277
284
  const scriptTag = `<script type="module">\n${page.script}\n</script>`
278
- const allScripts = `${runtimeTag}\n${scriptTag}`
285
+ const allScripts = `${importMap}\n${runtimeTag}\n${scriptTag}`
279
286
 
280
287
  let html = page.html;
281
288
  if (html.includes('</head>')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenithbuild/core",
3
- "version": "1.3.17",
3
+ "version": "1.3.19",
4
4
  "description": "Core library for the Zenith framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -61,10 +61,10 @@
61
61
  },
62
62
  "picocolors": "^1.1.1",
63
63
  "dependencies": {
64
- "@zenithbuild/bundler": "^1.3.17",
65
- "@zenithbuild/compiler": "^1.3.17",
66
- "@zenithbuild/runtime": "^0.2.0",
67
- "@zenithbuild/router": "^1.3.17"
64
+ "@zenithbuild/bundler": "^1.3.18",
65
+ "@zenithbuild/compiler": "^1.3.18",
66
+ "@zenithbuild/runtime": "^0.2.1",
67
+ "@zenithbuild/router": "^1.3.18"
68
68
  },
69
69
  "types": "./dist/index.d.ts"
70
70
  }