@absolutejs/absolute 0.19.0-beta.10 → 0.19.0-beta.11

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/build.js CHANGED
@@ -171235,29 +171235,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171235
171235
  setAngularVendorPaths(angularVendorPaths2);
171236
171236
  }
171237
171237
  const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
171238
- const freshFilePlugin = isIncremental ? {
171239
- name: "hmr-fresh-files",
171240
- setup(pluginBuild) {
171241
- pluginBuild.onLoad({ filter: /\.(tsx?|jsx?)$/ }, (args) => {
171242
- try {
171243
- const contents = readFileSync5(args.path, "utf-8");
171244
- const ext = args.path.split(".").pop() ?? "tsx";
171245
- const loaderMap = {
171246
- js: "js",
171247
- jsx: "jsx",
171248
- ts: "ts",
171249
- tsx: "tsx"
171250
- };
171251
- return {
171252
- contents,
171253
- loader: loaderMap[ext] ?? "tsx"
171254
- };
171255
- } catch {
171256
- return;
171257
- }
171258
- });
171259
- }
171260
- } : undefined;
171261
171238
  const reactBuildConfig = reactClientEntryPoints.length > 0 ? {
171262
171239
  entrypoints: reactClientEntryPoints,
171263
171240
  ...vendorPaths ? { external: Object.keys(vendorPaths) } : {},
@@ -171266,7 +171243,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171266
171243
  naming: `[dir]/[name].[hash].[ext]`,
171267
171244
  outdir: buildPath,
171268
171245
  ...hmr ? { jsx: { development: true }, reactFastRefresh: true } : {},
171269
- ...freshFilePlugin ? { plugins: [freshFilePlugin] } : {},
171270
171246
  root: clientRoot,
171271
171247
  splitting: true,
171272
171248
  target: "browser",
@@ -202574,38 +202550,17 @@ var parseErrorLocationFromMessage = (msg) => {
202574
202550
  vendorPaths = computeVendorPaths2();
202575
202551
  setDevVendorPaths2(vendorPaths);
202576
202552
  }
202577
- const { rmSync: rmSync2, readFileSync: readFileSync9 } = await import("fs");
202553
+ const { rmSync: rmSync2 } = await import("fs");
202578
202554
  rmSync2(resolve18(buildDir, "react", "indexes"), {
202579
202555
  force: true,
202580
202556
  recursive: true
202581
202557
  });
202582
- const freshFilePlugin = {
202583
- name: "hmr-fresh-files",
202584
- setup(build2) {
202585
- build2.onLoad({ filter: /\.(tsx?|jsx?)$/ }, (args) => {
202586
- try {
202587
- const contents = readFileSync9(args.path, "utf-8");
202588
- const ext = args.path.split(".").pop() ?? "tsx";
202589
- const loaderMap = {
202590
- js: "js",
202591
- jsx: "jsx",
202592
- ts: "ts",
202593
- tsx: "tsx"
202594
- };
202595
- return { contents, loader: loaderMap[ext] ?? "tsx" };
202596
- } catch {
202597
- return;
202598
- }
202599
- });
202600
- }
202601
- };
202602
202558
  const clientResult = await bunBuild5({
202603
202559
  entrypoints: reactEntries,
202604
202560
  format: "esm",
202605
202561
  jsx: { development: true },
202606
202562
  naming: "[dir]/[name].[hash].[ext]",
202607
202563
  outdir: buildDir,
202608
- plugins: [freshFilePlugin],
202609
202564
  reactFastRefresh: true,
202610
202565
  root: clientRoot,
202611
202566
  splitting: true,
@@ -203698,5 +203653,5 @@ export {
203698
203653
  build
203699
203654
  };
203700
203655
 
203701
- //# debugId=795D8BFFFD685F8C64756E2164756E21
203656
+ //# debugId=30FEE903D90C293764756E2164756E21
203702
203657
  //# sourceMappingURL=build.js.map