@absolutejs/absolute 0.19.0-beta.7 → 0.19.0-beta.8

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
@@ -171312,6 +171312,29 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171312
171312
  setAngularVendorPaths(angularVendorPaths2);
171313
171313
  }
171314
171314
  const htmlScriptPlugin = hmr ? createHTMLScriptHMRPlugin(htmlDir, htmxDir) : undefined;
171315
+ const freshFilePlugin = isIncremental ? {
171316
+ name: "hmr-fresh-files",
171317
+ setup(pluginBuild) {
171318
+ pluginBuild.onLoad({ filter: /\.(tsx?|jsx?)$/ }, (args) => {
171319
+ try {
171320
+ const contents = readFileSync5(args.path, "utf-8");
171321
+ const ext = args.path.split(".").pop() ?? "tsx";
171322
+ const loaderMap = {
171323
+ js: "js",
171324
+ jsx: "jsx",
171325
+ ts: "ts",
171326
+ tsx: "tsx"
171327
+ };
171328
+ return {
171329
+ contents,
171330
+ loader: loaderMap[ext] ?? "tsx"
171331
+ };
171332
+ } catch {
171333
+ return;
171334
+ }
171335
+ });
171336
+ }
171337
+ } : undefined;
171315
171338
  const reactBuildConfig = reactClientEntryPoints.length > 0 ? {
171316
171339
  entrypoints: reactClientEntryPoints,
171317
171340
  ...vendorPaths ? { external: Object.keys(vendorPaths) } : {},
@@ -171320,6 +171343,7 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171320
171343
  naming: `[dir]/[name].[hash].[ext]`,
171321
171344
  outdir: buildPath,
171322
171345
  ...hmr ? { jsx: { development: true }, reactFastRefresh: true } : {},
171346
+ ...freshFilePlugin ? { plugins: [freshFilePlugin] } : {},
171323
171347
  root: clientRoot,
171324
171348
  splitting: true,
171325
171349
  target: "browser",
@@ -204008,5 +204032,5 @@ export {
204008
204032
  ANGULAR_INIT_TIMEOUT_MS
204009
204033
  };
204010
204034
 
204011
- //# debugId=056CD5B04F7DDA7764756E2164756E21
204035
+ //# debugId=3DF2C619AEF5C5C064756E2164756E21
204012
204036
  //# sourceMappingURL=index.js.map