@wular/pnext 0.1.7 → 0.1.9

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.
Files changed (172) hide show
  1. package/dist/server/_chunks/{aliases-j47a10ce.js → aliases-fhv4dt06.js} +7 -5
  2. package/dist/server/_chunks/{analyze-arswqe6s.js → analyze-09kx9q6r.js} +17 -13
  3. package/dist/server/_chunks/{boot-af0mv3dy.js → boot-8aj7efqk.js} +13 -11
  4. package/dist/server/_chunks/{build-spy3dxp4.js → build-jda155c9.js} +7 -5
  5. package/dist/server/_chunks/{build-tier-m7yvqz61.js → build-tier-qrkpfsk1.js} +59 -75
  6. package/dist/server/_chunks/{build-t9h0hec3.js → build-wspv5h60.js} +1004 -1191
  7. package/dist/server/_chunks/{compile-53j02j27.js → compile-040r79gj.js} +2 -2
  8. package/dist/server/_chunks/{config-n2z7yxps.js → config-7h84p6q8.js} +6 -4
  9. package/dist/server/_chunks/{config-1yzwexq6.js → config-d4hqyygy.js} +12 -3
  10. package/dist/server/_chunks/{create-meec9hs6.js → create-skj8wzt5.js} +4 -3
  11. package/dist/server/_chunks/{dev-fjmqg6en.js → dev-pennd36n.js} +2 -2
  12. package/dist/server/_chunks/{generate-n9sh6hzt.js → generate-d8vb1d21.js} +5 -4
  13. package/dist/server/_chunks/{index-eeaanp2e.js → index-0qt2vapb.js} +3 -3
  14. package/dist/server/_chunks/{index-91x12ykq.js → index-0r5eqfc7.js} +6 -1
  15. package/dist/server/_chunks/{index-9ych9ma8.js → index-0wm2p3ks.js} +2 -2
  16. package/dist/server/_chunks/{index-357na4a8.js → index-141vcwk6.js} +1 -1
  17. package/dist/server/_chunks/{index-2dv4y4wd.js → index-1y0cesgn.js} +16 -10
  18. package/dist/server/_chunks/{index-ytjvpbm2.js → index-26gwrm07.js} +3 -3
  19. package/dist/server/_chunks/{index-8k7pfejn.js → index-3r6qpe8a.js} +7 -7
  20. package/dist/server/_chunks/{index-rn8dyr1f.js → index-42fef2rv.js} +8 -48
  21. package/dist/server/_chunks/{index-ncnes8c6.js → index-47gx7trn.js} +2 -2
  22. package/dist/server/_chunks/{index-20ppawv7.js → index-4qsce64w.js} +3 -3
  23. package/dist/server/_chunks/{index-1011cscr.js → index-4vf121ws.js} +61 -29
  24. package/dist/server/_chunks/{index-cf4rvxv6.js → index-52k54ykj.js} +1 -1
  25. package/dist/server/_chunks/{index-nyrba2kr.js → index-53fnn598.js} +11 -11
  26. package/dist/server/_chunks/{index-4hgjrqh7.js → index-6tb725m8.js} +2 -2
  27. package/dist/server/_chunks/{index-3xbr4eyv.js → index-912z4mfx.js} +3 -3
  28. package/dist/server/_chunks/{index-sjpckxqn.js → index-9f49w76j.js} +1 -1
  29. package/dist/server/_chunks/{index-jepjvcrf.js → index-aarf1brn.js} +1 -1
  30. package/dist/server/_chunks/{index-9n2914ww.js → index-akkrvjn6.js} +1 -1
  31. package/dist/server/_chunks/index-bzd2ef7t.js +10 -0
  32. package/dist/server/_chunks/{index-sv8m6789.js → index-cqcwwxfp.js} +5 -5
  33. package/dist/server/_chunks/{index-yz54pxrh.js → index-d1jsmhhk.js} +4 -9
  34. package/dist/server/_chunks/{index-vvmmknm1.js → index-da0fphj0.js} +19 -15
  35. package/dist/server/_chunks/{index-sctcgyvv.js → index-drwv61cc.js} +2 -2
  36. package/dist/server/_chunks/{index-z84ab1w0.js → index-e176wk6x.js} +3 -3
  37. package/dist/server/_chunks/{index-9hx2641q.js → index-entm8bmz.js} +1 -1
  38. package/dist/server/_chunks/index-fpghsgb4.js +352 -0
  39. package/dist/server/_chunks/{index-jx7bqvw1.js → index-hr63fvzn.js} +1 -1
  40. package/dist/server/_chunks/{index-eajaspjk.js → index-j0m1jxqa.js} +1 -1
  41. package/dist/server/_chunks/index-jbj7ehef.js +50 -0
  42. package/dist/server/_chunks/{index-egykcqg3.js → index-jexsy9a8.js} +1 -1
  43. package/dist/server/_chunks/{index-fkp000p1.js → index-jjppzw0s.js} +2 -2
  44. package/dist/server/_chunks/index-jt8e1pje.js +12 -0
  45. package/dist/server/_chunks/{index-ggk2j965.js → index-kpdph69z.js} +56 -50
  46. package/dist/server/_chunks/{index-6e4fqv30.js → index-m63czgq5.js} +2 -0
  47. package/dist/server/_chunks/{index-c0g2wf3z.js → index-md5jchzy.js} +1 -1
  48. package/dist/server/_chunks/{index-tvqkq6e6.js → index-n814hcky.js} +1 -1
  49. package/dist/server/_chunks/{index-06nyqntx.js → index-q3r9z8mq.js} +1 -1
  50. package/dist/server/_chunks/{index-4q2gbfwk.js → index-qjrh7w2g.js} +2 -2
  51. package/dist/server/_chunks/{index-3b3at80h.js → index-s61bx2aj.js} +6 -3
  52. package/dist/server/_chunks/{index-ym67zqxp.js → index-tf4j19ge.js} +1 -1
  53. package/dist/server/_chunks/{index-qn4z5s3c.js → index-typcbcsv.js} +3 -3
  54. package/dist/server/_chunks/{index-p77b4kcx.js → index-veycp46e.js} +1 -1
  55. package/dist/server/_chunks/{index-11sfk4hb.js → index-vmr35jjw.js} +1 -1
  56. package/dist/server/_chunks/{index-kq8kpzye.js → index-vqs3rebe.js} +3 -3
  57. package/dist/server/_chunks/{index-danncfhy.js → index-wm36rj4v.js} +1 -1
  58. package/dist/server/_chunks/{index-z4z9zv3b.js → index-x9c55pzy.js} +141 -3
  59. package/dist/server/_chunks/{index-y2jr2n72.js → index-xrsg0041.js} +4 -4
  60. package/dist/server/_chunks/{index-k1g3epw0.js → index-xs3411qh.js} +10 -10
  61. package/dist/server/_chunks/{index-0374j2b9.js → index-y4d02znn.js} +1 -1
  62. package/dist/server/_chunks/{index-wpfhfbs4.js → index-y71a76dn.js} +4 -4
  63. package/dist/server/_chunks/{index-qm6kmhqs.js → index-y7mzvq2q.js} +1 -1
  64. package/dist/server/_chunks/{index-hkdfj58q.js → index-y9bygr95.js} +1 -1
  65. package/dist/server/_chunks/{index-3tf1xjsp.js → index-yghskk8w.js} +11 -11
  66. package/dist/server/_chunks/{index-5gyr4emz.js → index-yzcpr3yw.js} +4 -4
  67. package/dist/server/_chunks/{index-x93hv0sc.js → index-zedjt25v.js} +23 -10
  68. package/dist/server/_chunks/{index-tq0pc7eg.js → index-zfrwq472.js} +3 -3
  69. package/dist/server/_chunks/{loader-7yw0j98z.js → loader-w1e0n5sm.js} +12 -10
  70. package/dist/server/_chunks/{modules-jn8bmbn8.js → modules-730j14cm.js} +14 -12
  71. package/dist/server/_chunks/{pipeline-yy9jhydf.js → pipeline-yjdnwbhm.js} +25 -21
  72. package/dist/server/_chunks/{production-jar9ztm3.js → production-1xe9b7wd.js} +14 -3
  73. package/dist/server/_chunks/{proxy-config-j84dgksn.js → proxy-config-9r9e0jvn.js} +7 -5
  74. package/dist/server/_chunks/{proxy-w1d0wmsn.js → proxy-pnevsbfd.js} +12 -10
  75. package/dist/server/_chunks/{router-k1reahfn.js → router-rzge0vz8.js} +10 -7
  76. package/dist/server/_chunks/{routes-2s277fc6.js → routes-0x8wjvcj.js} +12 -10
  77. package/dist/server/_chunks/{run-pvd8bs1t.js → run-tk90r3ac.js} +5 -4
  78. package/dist/server/_chunks/{server-mt4a994c.js → server-gev78ejc.js} +38 -34
  79. package/dist/server/_chunks/{tsconfig-defaults-1nb3308g.js → tsconfig-defaults-qe9wd6ne.js} +5 -4
  80. package/dist/server/_chunks/{typegen-0qr0459b.js → typegen-0yw8sry8.js} +15 -13
  81. package/dist/server/cli/index.js +12 -15
  82. package/dist/server/cli/start.js +35 -14
  83. package/dist/server/compat/next/cache.js +5 -5
  84. package/dist/server/compat/next/config-headers.js +8 -6
  85. package/dist/server/compat/next/config-loader.js +1 -1
  86. package/dist/server/compat/next/dist/server/web/spec-extension/revalidate.js +5 -5
  87. package/dist/server/compat/next/dist/server/web/spec-extension/unstable-cache.js +5 -5
  88. package/dist/server/compat/next/dist/server/web/spec-extension/unstable-no-store.js +5 -5
  89. package/dist/server/compat/next/dynamic.js +3 -14
  90. package/dist/server/compat/next/font/cache.js +6 -4
  91. package/dist/server/compat/next/font/local.js +7 -5
  92. package/dist/server/compat/next/font/runtime.js +7 -5
  93. package/dist/server/compat/next/headers.js +4 -4
  94. package/dist/server/compat/next/image/config.js +2 -2
  95. package/dist/server/compat/next/image/optimizer.js +3 -3
  96. package/dist/server/compat/next/image/static-metadata.js +4 -4
  97. package/dist/server/compat/next/legacy-request-apis.js +3 -3
  98. package/dist/server/compat/next/link-transform.js +4 -3
  99. package/dist/server/compat/next/navigation.js +5 -4
  100. package/dist/server/compat/next/redirects.js +8 -6
  101. package/dist/server/compat/next/resource-hints.js +2 -2
  102. package/dist/server/compat/next/rewrites.js +7 -5
  103. package/dist/server/compat/next/root-params.js +3 -3
  104. package/dist/server/compat/next/route-state.js +2 -2
  105. package/dist/server/compat/next/script.js +2 -2
  106. package/dist/server/compat/next/server.js +5 -5
  107. package/dist/server/generation.json +1 -1
  108. package/package.json +1 -1
  109. package/reference/compat.md +1 -1
  110. package/reference/config.md +2 -2
  111. package/reference/dev.md +1 -1
  112. package/reference/getting-started.md +1 -1
  113. package/reference/rendering.md +4 -4
  114. package/src/api/dynamic.tsx +84 -4
  115. package/src/cli/adapters/vercel-warm.ts +40 -29
  116. package/src/cli/adapters/vercel.ts +101 -1265
  117. package/src/cli/analyze.ts +3 -2
  118. package/src/cli/build/cache.ts +6 -6
  119. package/src/cli/build.ts +33 -33
  120. package/src/cli/index.ts +4 -6
  121. package/src/cli/serve/pipeline.ts +16 -10
  122. package/src/cli/serve/standalone-worker.ts +8 -0
  123. package/src/cli/serve/standalone.ts +727 -0
  124. package/src/cli/start.ts +29 -8
  125. package/src/client/build.ts +1 -1
  126. package/src/client/reference-stub.ts +2 -34
  127. package/src/compat/actions/extensions.ts +3 -2
  128. package/src/compat/bundler/require-context.ts +2 -1
  129. package/src/compat/bundler/webpack-loaders.ts +3 -2
  130. package/src/compat/bundler/worker.ts +2 -2
  131. package/src/compat/css/inline-css.ts +1 -1
  132. package/src/compat/export/build-complete.ts +1 -1
  133. package/src/compat/export/emit.ts +4 -4
  134. package/src/compat/export/standalone.ts +30 -65
  135. package/src/compat/image-optimizer/optimize.ts +1 -1
  136. package/src/compat/lifecycle/instrumentation-client.ts +4 -3
  137. package/src/compat/metadata-artifacts.ts +1 -1
  138. package/src/compat/next/config-loader.ts +3 -0
  139. package/src/compat/next/dynamic.tsx +10 -23
  140. package/src/compat/next/font/cache.ts +2 -1
  141. package/src/compat/next/font/runtime.ts +1 -1
  142. package/src/compat/register/image.ts +1 -1
  143. package/src/compat/typecheck/check.ts +6 -4
  144. package/src/config.ts +28 -5
  145. package/src/css/assets.ts +1 -1
  146. package/src/css/build.ts +16 -9
  147. package/src/dev/client-chunk-store.ts +2 -1
  148. package/src/dev/restart/client-key.ts +2 -1
  149. package/src/dev/restart/global-css.ts +2 -1
  150. package/src/dev/restart/route-bundle-key.ts +2 -1
  151. package/src/dev/restart/route-facts.ts +2 -1
  152. package/src/dev/server.ts +8 -7
  153. package/src/out-paths.ts +10 -0
  154. package/src/render/renderer.ts +1 -1
  155. package/src/resolve/dynamic.ts +4 -0
  156. package/src/resolve/engine.ts +2 -12
  157. package/src/resolve/scan-facts.ts +185 -1
  158. package/src/routing/metadata-files.ts +1 -1
  159. package/src/runtime/loader.ts +5 -3
  160. package/src/runtime/module-cache.ts +2 -1
  161. package/src/runtime/modules.ts +50 -16
  162. package/src/runtime/prebundle.ts +23 -3
  163. package/src/runtime/production.ts +105 -40
  164. package/src/runtime/release-graph.ts +21 -13
  165. package/src/runtime/vendor-build.ts +45 -23
  166. package/src/types.ts +2 -3
  167. package/src/utils/directive.ts +40 -0
  168. package/src/utils/fs.ts +7 -2
  169. package/src/utils/resource-query.ts +12 -0
  170. package/dist/server/_chunks/index-tqn2qnnn.js +0 -241
  171. package/dist/server/_chunks/index-y36a0ybw.js +0 -57
  172. package/src/cli/serve/entry.ts +0 -52
@@ -3,8 +3,8 @@ import {
3
3
  compileMdx,
4
4
  mdxOptionsFromConfig,
5
5
  resolveMdxComponents
6
- } from "./index-qm6kmhqs.js";
7
- import"./index-6e4fqv30.js";
6
+ } from "./index-y7mzvq2q.js";
7
+ import"./index-m63czgq5.js";
8
8
  import"./index-cjgqs13g.js";
9
9
  import"./index-jks0x0a1.js";
10
10
  import"./index-6b009mt0.js";
@@ -1,21 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  registerConfigSource
4
- } from "./index-ncnes8c6.js";
5
- import"./index-6e4fqv30.js";
4
+ } from "./index-47gx7trn.js";
5
+ import"./index-m63czgq5.js";
6
6
  import"./index-cjgqs13g.js";
7
7
  import"./index-jks0x0a1.js";
8
8
  import"./index-6b009mt0.js";
9
9
  import"./index-4zzebszd.js";
10
10
  import"./index-sq3kvz3g.js";
11
11
  import"./index-ckkdpht5.js";
12
- import"./index-x93hv0sc.js";
13
- import"./index-tqn2qnnn.js";
12
+ import"./index-zedjt25v.js";
13
+ import"./index-bzd2ef7t.js";
14
+ import"./index-fpghsgb4.js";
14
15
  import"./index-grta8ap3.js";
15
16
  import"./index-kresp2n8.js";
16
17
  import"./index-e3a6yx84.js";
17
18
  import"./index-7wc9n8be.js";
18
19
  import"./index-pym1cezq.js";
20
+ import"./index-jt8e1pje.js";
19
21
  import"./index-rt9qq1va.js";
20
22
  export {
21
23
  registerConfigSource
@@ -3,25 +3,34 @@ import {
3
3
  DEFAULT_OUT_DIR,
4
4
  devOutSegment,
5
5
  frameworkRuntimeAliasEntries,
6
+ frameworkRuntimeSpecifiers,
6
7
  loadConfig,
7
8
  pathToFileHref,
8
9
  pnextAliases,
9
10
  publicEnvDefines,
10
11
  registerConfigSource
11
- } from "./index-x93hv0sc.js";
12
- import"./index-tqn2qnnn.js";
12
+ } from "./index-zedjt25v.js";
13
+ import {
14
+ outCachePath,
15
+ standaloneOutSegment
16
+ } from "./index-bzd2ef7t.js";
17
+ import"./index-fpghsgb4.js";
13
18
  import"./index-grta8ap3.js";
14
19
  import"./index-kresp2n8.js";
15
20
  import"./index-e3a6yx84.js";
16
21
  import"./index-pym1cezq.js";
22
+ import"./index-jt8e1pje.js";
17
23
  import"./index-rt9qq1va.js";
18
24
  export {
19
25
  DEFAULT_OUT_DIR,
20
26
  devOutSegment,
21
27
  frameworkRuntimeAliasEntries,
28
+ frameworkRuntimeSpecifiers,
22
29
  loadConfig,
30
+ outCachePath,
23
31
  pathToFileHref,
24
32
  pnextAliases,
25
33
  publicEnvDefines,
26
- registerConfigSource
34
+ registerConfigSource,
35
+ standaloneOutSegment
27
36
  };
@@ -3,18 +3,19 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  latestPnextVersionRange
6
- } from "./index-jx7bqvw1.js";
6
+ } from "./index-hr63fvzn.js";
7
7
  import {
8
8
  formatDuration
9
9
  } from "./index-73z4esab.js";
10
- import"./index-20ppawv7.js";
11
- import"./index-tqn2qnnn.js";
10
+ import"./index-4qsce64w.js";
11
+ import"./index-fpghsgb4.js";
12
12
  import {
13
13
  bold,
14
14
  cyan,
15
15
  dim,
16
16
  green
17
17
  } from "./index-6kp9r0d9.js";
18
+ import"./index-jt8e1pje.js";
18
19
  import"./index-rt9qq1va.js";
19
20
 
20
21
  // src/cli/create.ts
@@ -35,8 +35,8 @@ function nameDevProcess() {
35
35
  async function dev(options = {}) {
36
36
  nameDevProcess();
37
37
  const [{ loadConfig }, { startDevServer }] = await Promise.all([
38
- import("./config-1yzwexq6.js"),
39
- import("./server-mt4a994c.js")
38
+ import("./config-d4hqyygy.js"),
39
+ import("./server-gev78ejc.js")
40
40
  ]);
41
41
  markBoot("dev:imports");
42
42
  const config = await loadConfig(options.root, { dev: true });
@@ -1,20 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  generateTypedRoutes
4
- } from "./index-4hgjrqh7.js";
4
+ } from "./index-6tb725m8.js";
5
5
  import"./index-v1ags1na.js";
6
- import"./index-6e4fqv30.js";
6
+ import"./index-m63czgq5.js";
7
7
  import"./index-cjgqs13g.js";
8
8
  import"./index-jks0x0a1.js";
9
9
  import"./index-6b009mt0.js";
10
10
  import"./index-4zzebszd.js";
11
11
  import"./index-sq3kvz3g.js";
12
12
  import"./index-ckkdpht5.js";
13
- import"./index-20ppawv7.js";
14
- import"./index-tqn2qnnn.js";
13
+ import"./index-4qsce64w.js";
14
+ import"./index-fpghsgb4.js";
15
15
  import"./index-kresp2n8.js";
16
16
  import"./index-e3a6yx84.js";
17
17
  import"./index-7wc9n8be.js";
18
+ import"./index-jt8e1pje.js";
18
19
  import"./index-rt9qq1va.js";
19
20
  export {
20
21
  generateTypedRoutes
@@ -3,7 +3,7 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  isReleaseCompile
6
- } from "./index-3xbr4eyv.js";
6
+ } from "./index-912z4mfx.js";
7
7
  import {
8
8
  actionId,
9
9
  moduleActionExports,
@@ -13,11 +13,11 @@ import {
13
13
  import {
14
14
  readText,
15
15
  toPosixPath
16
- } from "./index-20ppawv7.js";
16
+ } from "./index-4qsce64w.js";
17
17
  import {
18
18
  frameworkRuntimeAliasEntries,
19
19
  pnextAliases
20
- } from "./index-x93hv0sc.js";
20
+ } from "./index-zedjt25v.js";
21
21
  import {
22
22
  escapeRegex,
23
23
  isIdentifier,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  dynamicCallFacts,
7
7
  rewriteFacts
8
- } from "./index-z4z9zv3b.js";
8
+ } from "./index-x9c55pzy.js";
9
9
 
10
10
  // src/resolve/dynamic.ts
11
11
  function sourceHasDynamicImport(source) {
@@ -178,6 +178,7 @@ function deferredDynamicImportSpecifiers(source, file) {
178
178
  optionConsts.set(constMatch[1], constMatch[2]);
179
179
  }
180
180
  const facts = dynamicCallFacts(source, file);
181
+ const rendered = new Set;
181
182
  for (const call of dynamicCallsFromSource(source, dynamicNames)) {
182
183
  const target = loaderImportTargetForCall(call, facts);
183
184
  if (!target)
@@ -194,7 +195,11 @@ ${named}`;
194
195
  const visible = /\bload\s*:\s*['"]visible['"]/.test(options) && !/\bssr\s*:\s*true\b/.test(options);
195
196
  if (ssrFalse || visible)
196
197
  deferred.add(target.specifier);
198
+ else
199
+ rendered.add(target.specifier);
197
200
  }
201
+ for (const specifier of rendered)
202
+ deferred.delete(specifier);
198
203
  return deferred;
199
204
  }
200
205
  function topLevelArgCount(args) {
@@ -3,11 +3,11 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  getNextConfig
6
- } from "./index-6e4fqv30.js";
6
+ } from "./index-m63czgq5.js";
7
7
  import {
8
8
  includeTypes,
9
9
  writeFileAtomic
10
- } from "./index-20ppawv7.js";
10
+ } from "./index-4qsce64w.js";
11
11
 
12
12
  // src/compat/tsconfig-defaults.ts
13
13
  import { existsSync, readdirSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  getNextConfig
4
- } from "./index-6e4fqv30.js";
4
+ } from "./index-m63czgq5.js";
5
5
 
6
6
  // src/compat/next/image/config.ts
7
7
  var DEFAULTS = {
@@ -11,7 +11,7 @@ import {
11
11
  hashedAssetName,
12
12
  isCssModuleFile,
13
13
  recordEmittedAsset
14
- } from "./index-y2jr2n72.js";
14
+ } from "./index-xrsg0041.js";
15
15
  import {
16
16
  readSourceSync
17
17
  } from "./index-fp8r0sqs.js";
@@ -21,13 +21,16 @@ import {
21
21
  import {
22
22
  ensureDir,
23
23
  readText
24
- } from "./index-20ppawv7.js";
24
+ } from "./index-4qsce64w.js";
25
+ import {
26
+ outCachePath
27
+ } from "./index-bzd2ef7t.js";
25
28
  import {
26
29
  productionRelease
27
- } from "./index-tqn2qnnn.js";
30
+ } from "./index-fpghsgb4.js";
28
31
  import {
29
32
  resolveImport
30
- } from "./index-yz54pxrh.js";
33
+ } from "./index-d1jsmhhk.js";
31
34
  import {
32
35
  extraPageExtensions,
33
36
  getCssExtensions
@@ -464,7 +467,6 @@ function interopDefault(mod) {
464
467
  return mod.default;
465
468
  return mod;
466
469
  }
467
-
468
470
  // src/css/build.ts
469
471
  var worker;
470
472
  var workerFailed = false;
@@ -525,9 +527,13 @@ async function stopCssWorker() {
525
527
  if (active)
526
528
  await Promise.resolve(active.terminate());
527
529
  }
530
+ function scanOutDir(config, dev) {
531
+ return dev ? config.outPath : config.outRootPath;
532
+ }
528
533
  async function runPostcssOffThread(config, cssFile, options, from) {
529
- const { root, outPath: outDir } = config;
530
534
  const dev = options.dev ?? false;
535
+ const { root } = config;
536
+ const outDir = scanOutDir(config, dev);
531
537
  const sent = send((id) => ({ kind: "process", id, root, dev, outDir, cssFile, from }));
532
538
  if (sent)
533
539
  return sent;
@@ -539,7 +545,7 @@ function warmCssWorker(config, options = {}) {
539
545
  id,
540
546
  root: config.root,
541
547
  dev: options.dev ?? false,
542
- outDir: config.outPath
548
+ outDir: scanOutDir(config, options.dev ?? false)
543
549
  }))?.catch(() => {});
544
550
  }
545
551
  function globalCssSource(config) {
@@ -616,7 +622,7 @@ async function buildGlobalCss(config, options = {}) {
616
622
  log.log("global css: no side-effect css imports in root layout, skipping");
617
623
  return;
618
624
  }
619
- const outDir = options.dev ? path2.join(config.outPath, "cache", "assets") : path2.join(config.outPath, "public", "assets");
625
+ const outDir = options.dev ? path2.join(outCachePath(config.outPath), "assets") : path2.join(config.outPath, "static", "assets");
620
626
  const outfile = path2.join(outDir, "global.css");
621
627
  await ensureDir(outDir);
622
628
  log.log(`global css: ${sources.length} source${sources.length === 1 ? "" : "s"} \u2014 ${sources.map((file) => path2.relative(config.root, file)).join(", ")}`);
@@ -793,7 +799,7 @@ function buildRouteStylesheets(config, routes, documentCss, options = {}) {
793
799
  return publish;
794
800
  }
795
801
  async function buildNotFoundCss(config, options = {}) {
796
- const { collectFileCss } = await import("./routes-2s277fc6.js");
802
+ const { collectFileCss } = await import("./routes-0x8wjvcj.js");
797
803
  const targets = [
798
804
  {
799
805
  id: "not-found",
@@ -833,7 +839,7 @@ async function bundleCssChunk(config, cssImports, assetName, label, options) {
833
839
  }
834
840
  async function writeCssChunk(config, cssImports, assetName, label, options) {
835
841
  const log = createVerboseLogger(options.verbose ?? false, "css");
836
- const outDir = options.dev ? path2.join(config.outPath, "cache", "assets") : path2.join(config.outPath, "public", "assets");
842
+ const outDir = options.dev ? path2.join(outCachePath(config.outPath), "assets") : path2.join(config.outPath, "static", "assets");
837
843
  const outfile = path2.join(outDir, assetName);
838
844
  await ensureDir(outDir);
839
845
  log.log(`${label}: ${cssImports.length} import${cssImports.length === 1 ? "" : "s"}`);
@@ -4,7 +4,7 @@ const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  persistFont,
6
6
  persistedFont
7
- } from "./index-3b3at80h.js";
7
+ } from "./index-s61bx2aj.js";
8
8
  import {
9
9
  familyStack,
10
10
  fontStyle,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./index-fn1chkkd.js";
16
16
  import {
17
17
  servedRelease
18
- } from "./index-tqn2qnnn.js";
18
+ } from "./index-fpghsgb4.js";
19
19
  import {
20
20
  getWorkUnit
21
21
  } from "./index-grta8ap3.js";
@@ -504,7 +504,7 @@ async function emitFontBytes(context, bytes, ext, emit, sourceFile) {
504
504
  const hash = createHash("sha256").update(bytes).digest("hex").slice(0, 16);
505
505
  const filename = `${hash}${emit.adjustFontFallback ? "-s" : ""}${emit.preload ? ".p" : ""}.${ext}`;
506
506
  const mediaSegments = ["_next", "static", "media"];
507
- const outDir = path.join(context.config.outPath, "public", ...mediaSegments);
507
+ const outDir = path.join(context.config.outPath, "static", ...mediaSegments);
508
508
  const file = path.join(outDir, filename);
509
509
  const asset = {
510
510
  ext,
@@ -3,17 +3,17 @@ import {
3
3
  dynamicCallsFromSource,
4
4
  pnextDynamicImportNames,
5
5
  rewriteLiteralDynamicCalls
6
- } from "./index-91x12ykq.js";
6
+ } from "./index-0r5eqfc7.js";
7
7
  import {
8
8
  conventionFileName,
9
9
  findConventionFiles,
10
10
  findLayouts,
11
11
  pageExtensions,
12
12
  serverActionsUnsupportedMessage
13
- } from "./index-jepjvcrf.js";
13
+ } from "./index-aarf1brn.js";
14
14
  import {
15
15
  globalCssSourcesForPaths
16
- } from "./index-2dv4y4wd.js";
16
+ } from "./index-1y0cesgn.js";
17
17
  import {
18
18
  readSourceSync
19
19
  } from "./index-fp8r0sqs.js";
@@ -25,13 +25,13 @@ import {
25
25
  isSlotSegment,
26
26
  slotConventionFile,
27
27
  slotDirectoriesIn
28
- } from "./index-p77b4kcx.js";
28
+ } from "./index-veycp46e.js";
29
29
  import {
30
30
  listFiles,
31
31
  listFilesSync,
32
32
  toPosixPath,
33
33
  withDirCache
34
- } from "./index-20ppawv7.js";
34
+ } from "./index-4qsce64w.js";
35
35
  import {
36
36
  clientReferenceId,
37
37
  ssrClientReference
@@ -39,12 +39,12 @@ import {
39
39
  import {
40
40
  dynamicCallFacts,
41
41
  scanFacts
42
- } from "./index-z4z9zv3b.js";
42
+ } from "./index-x9c55pzy.js";
43
43
  import {
44
44
  resolveImport,
45
45
  resolveModuleAlias,
46
46
  resolvePackageSpecifier
47
- } from "./index-yz54pxrh.js";
47
+ } from "./index-d1jsmhhk.js";
48
48
  import {
49
49
  alwaysClientEntryReasons,
50
50
  classifyRouteDependencies,
@@ -1,22 +1,25 @@
1
1
  // @bun
2
2
  import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
+ import {
5
+ hasModuleDirective
6
+ } from "./index-jbj7ehef.js";
4
7
  import {
5
8
  readText
6
- } from "./index-20ppawv7.js";
9
+ } from "./index-4qsce64w.js";
7
10
  import {
8
11
  pathToFileHref
9
- } from "./index-x93hv0sc.js";
12
+ } from "./index-zedjt25v.js";
10
13
  import {
11
14
  clientReferenceId
12
15
  } from "./index-ras0sdab.js";
13
16
  import {
14
17
  moduleExportNames,
15
18
  moduleExportStars
16
- } from "./index-z4z9zv3b.js";
19
+ } from "./index-x9c55pzy.js";
17
20
  import {
18
21
  resolveImport
19
- } from "./index-yz54pxrh.js";
22
+ } from "./index-d1jsmhhk.js";
20
23
 
21
24
  // src/client/reference-stub.ts
22
25
  import path from "path";
@@ -73,50 +76,7 @@ async function clientReferenceExportNames(config, file, source, visited = new Se
73
76
  return [...names];
74
77
  }
75
78
  function hasUseClientDirective(source) {
76
- const isSpace = (index) => {
77
- const code = source.charCodeAt(index);
78
- return code === 32 || code >= 9 && code <= 13 || code > 127 && /\s/.test(source[index]);
79
- };
80
- let i = 0;
81
- for (;; ) {
82
- while (i < source.length && isSpace(i))
83
- i += 1;
84
- if (source.startsWith("//", i)) {
85
- const newline = source.indexOf(`
86
- `, i);
87
- if (newline === -1)
88
- return false;
89
- i = newline + 1;
90
- continue;
91
- }
92
- if (source.startsWith("/*", i)) {
93
- const end2 = source.indexOf("*/", i + 2);
94
- if (end2 === -1)
95
- return false;
96
- i = end2 + 2;
97
- continue;
98
- }
99
- const quote = source[i];
100
- if (quote !== '"' && quote !== "'")
101
- return false;
102
- let end = i + 1;
103
- while (end < source.length) {
104
- const char = source[end];
105
- if (char === quote || char === `
106
- ` || char === "\\")
107
- break;
108
- end += 1;
109
- }
110
- if (source[end] !== quote)
111
- return false;
112
- if (source.slice(i + 1, end) === "use client")
113
- return true;
114
- i = end + 1;
115
- while (i < source.length && isSpace(i))
116
- i += 1;
117
- if (source[i] === ";")
118
- i += 1;
119
- }
79
+ return hasModuleDirective(source, "use client");
120
80
  }
121
81
  function isInside(root, file) {
122
82
  const relative = path.relative(root, file);
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  loadNextConfig
4
- } from "./index-6e4fqv30.js";
4
+ } from "./index-m63czgq5.js";
5
5
  import {
6
6
  registerConfigSource
7
- } from "./index-x93hv0sc.js";
7
+ } from "./index-zedjt25v.js";
8
8
 
9
9
  // src/compat/register/config.ts
10
10
  function registerConfigSource2() {
@@ -3,7 +3,7 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  frozenDirListing
6
- } from "./index-tqn2qnnn.js";
6
+ } from "./index-fpghsgb4.js";
7
7
 
8
8
  // src/utils/fs.ts
9
9
  import { existsSync, readdirSync, readFileSync } from "fs";
@@ -230,10 +230,10 @@ function serializeBuildManifest(data) {
230
230
  return `${JSON.stringify(stored, null, 2)}
231
231
  `;
232
232
  }
233
- function resolveManifest(data, outPath, root) {
233
+ function resolveManifest(data, outPath, root, framework = frameworkRoot) {
234
234
  if (path.isAbsolute(data.root))
235
235
  return data;
236
- const absolute = (file) => file.startsWith(frameworkPrefix) ? path.join(frameworkRoot, file.slice(frameworkPrefix.length)) : path.join(root, file);
236
+ const absolute = (file) => file.startsWith(frameworkPrefix) ? path.join(framework, file.slice(frameworkPrefix.length)) : path.join(root, file);
237
237
  return {
238
238
  ...mapSourcePaths(data, absolute),
239
239
  root,