@absolutejs/absolute 0.19.0-beta.1059 → 0.19.0-beta.1060

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.
@@ -8,7 +8,11 @@ import type {} from '../../types/globals';
8
8
  is preserved so new component registrations feed into the SAME RefreshRuntime
9
9
  instance that owns the current React tree. */
10
10
 
11
- import * as RefreshRuntime from './vendor/reactRefreshRuntime.js';
11
+ // Bare specifier (not the relative ./vendor path) so the React client build
12
+ // externalizes it and rewrites it to the same /react/vendor/react-refresh_runtime.js
13
+ // URL that Fast Refresh-instrumented components import — one shared runtime
14
+ // instance across this setup module and every component chunk.
15
+ import * as RefreshRuntime from 'react-refresh/runtime';
12
16
 
13
17
  if (!window.$RefreshRuntime$) {
14
18
  RefreshRuntime.injectIntoGlobalHook(window);
package/dist/index.js CHANGED
@@ -29267,6 +29267,10 @@ var resolveJsxDevRuntimeCompatPath = () => {
29267
29267
  }, generateEntrySource = async (specifier) => {
29268
29268
  if (specifier === "react/jsx-dev-runtime") {
29269
29269
  return `export { Fragment, jsxDEV } from '${jsxDevRuntimeCompatPath}';
29270
+ `;
29271
+ }
29272
+ if (specifier === "react-refresh/runtime") {
29273
+ return `export * from '${reactRefreshRuntimePath}';
29270
29274
  `;
29271
29275
  }
29272
29276
  const mod = await import(specifier);
@@ -29310,13 +29314,15 @@ var resolveJsxDevRuntimeCompatPath = () => {
29310
29314
  }
29311
29315
  };
29312
29316
  var init_buildReactVendor = __esm(() => {
29317
+ init_generateReactIndexes();
29313
29318
  jsxDevRuntimeCompatPath = resolveJsxDevRuntimeCompatPath();
29314
29319
  reactSpecifiers = [
29315
29320
  "react",
29316
29321
  "react-dom",
29317
29322
  "react-dom/client",
29318
29323
  "react/jsx-runtime",
29319
- "react/jsx-dev-runtime"
29324
+ "react/jsx-dev-runtime",
29325
+ "react-refresh/runtime"
29320
29326
  ];
29321
29327
  });
29322
29328
 
@@ -29718,10 +29724,7 @@ import {
29718
29724
  } from "fs";
29719
29725
  import { basename as basename12, dirname as dirname20, extname as extname8, join as join40, relative as relative14, resolve as resolve28 } from "path";
29720
29726
  import { cwd, env as env3, exit } from "process";
29721
- var {
29722
- build: bunBuild7,
29723
- Glob: Glob8
29724
- } = globalThis.Bun;
29727
+ var {build: bunBuild7, Glob: Glob8 } = globalThis.Bun;
29725
29728
  var isDev2, isBuildTraceEnabled = () => {
29726
29729
  const value = env3.ABSOLUTE_BUILD_TRACE?.toLowerCase();
29727
29730
  return value === "1" || value === "true" || value === "yes";
@@ -30877,14 +30880,6 @@ ${content.slice(firstUseIdx)}`;
30877
30880
  ];
30878
30881
  const svelteResolveConditions = svelteDir ? ["svelte", "main"] : undefined;
30879
30882
  const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
30880
- const reactRefreshRuntimePlugin = {
30881
- name: "absolute-react-refresh-runtime",
30882
- setup(builder) {
30883
- builder.onResolve({ filter: /^react-refresh\/runtime$/ }, () => ({
30884
- path: reactRefreshRuntimePath
30885
- }));
30886
- }
30887
- };
30888
30883
  const reactBuildConfig = reactClientEntryPoints.length > 0 ? mergeBunBuildConfig({
30889
30884
  entrypoints: reactClientEntryPoints,
30890
30885
  ...Object.keys(reactExternalPaths).length > 0 ? { external: Object.keys(reactExternalPaths) } : {},
@@ -30896,11 +30891,7 @@ ${content.slice(firstUseIdx)}`;
30896
30891
  jsx: { development: true },
30897
30892
  reactFastRefresh: true
30898
30893
  } : {},
30899
- plugins: hmr ? [
30900
- stylePreprocessorPlugin2,
30901
- reactRefreshRuntimePlugin,
30902
- ...islandRegistryPlugins
30903
- ] : [
30894
+ plugins: [
30904
30895
  stylePreprocessorPlugin2,
30905
30896
  ...islandRegistryPlugins
30906
30897
  ],
@@ -46578,5 +46569,5 @@ export {
46578
46569
  ANGULAR_INIT_TIMEOUT_MS
46579
46570
  };
46580
46571
 
46581
- //# debugId=2067581091BE8F3964756E2164756E21
46572
+ //# debugId=0B8AF5890188402264756E2164756E21
46582
46573
  //# sourceMappingURL=index.js.map