@absolutejs/absolute 0.19.0-beta.1011 → 0.19.0-beta.1012

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.
package/dist/index.js CHANGED
@@ -9083,7 +9083,7 @@ var indexContentCache, resolveDevClientDir = () => {
9083
9083
  if (existsSync8(fromNodeModules))
9084
9084
  return fromNodeModules;
9085
9085
  return resolve13(import.meta.dir, "./dev/client");
9086
- }, devClientDir, errorOverlayPath, hmrClientPath, refreshSetupPath, generateReactIndexFiles = async (reactPagesDirectory, reactIndexesDirectory, isDev2 = false) => {
9086
+ }, devClientDir, errorOverlayPath, hmrClientPath, refreshSetupPath, reactRefreshRuntimePath, generateReactIndexFiles = async (reactPagesDirectory, reactIndexesDirectory, isDev2 = false) => {
9087
9087
  if (!existsSync8(reactIndexesDirectory)) {
9088
9088
  mkdirSync2(reactIndexesDirectory, { recursive: true });
9089
9089
  }
@@ -9416,6 +9416,7 @@ var init_generateReactIndexes = __esm(() => {
9416
9416
  errorOverlayPath = join9(devClientDir, "errorOverlay.ts").replace(/\\/g, "/");
9417
9417
  hmrClientPath = join9(devClientDir, "hmrClient.ts").replace(/\\/g, "/");
9418
9418
  refreshSetupPath = join9(devClientDir, "reactRefreshSetup.ts").replace(/\\/g, "/");
9419
+ reactRefreshRuntimePath = join9(devClientDir, "vendor", "reactRefreshRuntime.js").replace(/\\/g, "/");
9419
9420
  });
9420
9421
 
9421
9422
  // src/build/wrapHTMLScript.ts
@@ -19592,7 +19593,10 @@ import {
19592
19593
  } from "fs";
19593
19594
  import { basename as basename11, dirname as dirname19, extname as extname8, join as join36, relative as relative13, resolve as resolve28 } from "path";
19594
19595
  import { cwd, env as env3, exit } from "process";
19595
- var {build: bunBuild7, Glob: Glob8 } = globalThis.Bun;
19596
+ var {
19597
+ build: bunBuild7,
19598
+ Glob: Glob8
19599
+ } = globalThis.Bun;
19596
19600
  var isDev2, isBuildTraceEnabled = () => {
19597
19601
  const value = env3.ABSOLUTE_BUILD_TRACE?.toLowerCase();
19598
19602
  return value === "1" || value === "true" || value === "yes";
@@ -20735,6 +20739,14 @@ ${content.slice(firstUseIdx)}`;
20735
20739
  ];
20736
20740
  const svelteResolveConditions = svelteDir ? ["svelte", "main"] : undefined;
20737
20741
  const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
20742
+ const reactRefreshRuntimePlugin = {
20743
+ name: "absolute-react-refresh-runtime",
20744
+ setup(builder) {
20745
+ builder.onResolve({ filter: /^react-refresh\/runtime$/ }, () => ({
20746
+ path: reactRefreshRuntimePath
20747
+ }));
20748
+ }
20749
+ };
20738
20750
  const reactBuildConfig = reactClientEntryPoints.length > 0 ? mergeBunBuildConfig({
20739
20751
  entrypoints: reactClientEntryPoints,
20740
20752
  ...Object.keys(reactExternalPaths).length > 0 ? { external: Object.keys(reactExternalPaths) } : {},
@@ -20746,7 +20758,10 @@ ${content.slice(firstUseIdx)}`;
20746
20758
  jsx: { development: true },
20747
20759
  reactFastRefresh: true
20748
20760
  } : {},
20749
- plugins: [stylePreprocessorPlugin2],
20761
+ plugins: hmr ? [
20762
+ stylePreprocessorPlugin2,
20763
+ reactRefreshRuntimePlugin
20764
+ ] : [stylePreprocessorPlugin2],
20750
20765
  root: clientRoot,
20751
20766
  splitting: true,
20752
20767
  target: "browser",
@@ -35838,5 +35853,5 @@ export {
35838
35853
  ANGULAR_INIT_TIMEOUT_MS
35839
35854
  };
35840
35855
 
35841
- //# debugId=291AAF3E2052619064756E2164756E21
35856
+ //# debugId=E2B3E7F15839C01C64756E2164756E21
35842
35857
  //# sourceMappingURL=index.js.map