nitro-nightly 3.0.1-20260106-130706-e20c92d9 → 3.0.1-20260106-182834-5019d347

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 (71) hide show
  1. package/dist/_build/rolldown.mjs +7 -5
  2. package/dist/_build/rollup.mjs +15 -5
  3. package/dist/_build/shared.mjs +2 -1
  4. package/dist/_build/shared2.mjs +1 -1
  5. package/dist/_build/shared3.mjs +1 -1
  6. package/dist/_build/vite.build.mjs +7 -6
  7. package/dist/_dev.mjs +2 -1
  8. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +5 -1560
  9. package/dist/_libs/@jridgewell/gen-mapping.mjs +2 -304
  10. package/dist/_libs/@jridgewell/remapping.mjs +2 -1
  11. package/dist/_libs/@jridgewell/resolve-uri.mjs +166 -0
  12. package/dist/_libs/@jridgewell/sourcemap-codec.mjs +167 -0
  13. package/dist/_libs/@jridgewell/trace-mapping.mjs +141 -0
  14. package/dist/_libs/@rolldown/pluginutils.mjs +31 -0
  15. package/dist/_libs/@rollup/plugin-commonjs.mjs +33 -2636
  16. package/dist/_libs/@rollup/plugin-inject.mjs +3 -2
  17. package/dist/_libs/@rollup/plugin-json.mjs +1 -1
  18. package/dist/_libs/@rollup/plugin-node-resolve.mjs +7 -1111
  19. package/dist/_libs/@rollup/plugin-replace.mjs +2 -2
  20. package/dist/_libs/@rollup/pluginutils.mjs +241 -0
  21. package/dist/_libs/c12.mjs +63 -2513
  22. package/dist/_libs/chokidar.mjs +1 -234
  23. package/dist/_libs/commondir.mjs +22 -0
  24. package/dist/_libs/confbox.mjs +1102 -502
  25. package/dist/_libs/deepmerge.mjs +86 -0
  26. package/dist/_libs/dotenv.mjs +345 -0
  27. package/dist/_libs/estree-walker.mjs +144 -1
  28. package/dist/_libs/exsolve.mjs +1007 -0
  29. package/dist/_libs/fdir.mjs +514 -0
  30. package/dist/_libs/function-bind.mjs +63 -0
  31. package/dist/_libs/giget.mjs +1376 -2234
  32. package/dist/_libs/hasown.mjs +14 -0
  33. package/dist/_libs/is-core-module.mjs +220 -0
  34. package/dist/_libs/is-module.mjs +13 -0
  35. package/dist/_libs/is-reference.mjs +33 -0
  36. package/dist/_libs/js-tokens.mjs +382 -0
  37. package/dist/_libs/local-pkg.mjs +6 -1560
  38. package/dist/_libs/magic-string.mjs +939 -0
  39. package/dist/_libs/mlly.mjs +1415 -0
  40. package/dist/_libs/node-fetch-native.mjs +7 -0
  41. package/dist/_libs/nypm.mjs +239 -0
  42. package/dist/_libs/path-parse.mjs +47 -0
  43. package/dist/_libs/pathe.mjs +163 -2
  44. package/dist/_libs/perfect-debounce.mjs +89 -0
  45. package/dist/_libs/picomatch.mjs +1673 -0
  46. package/dist/_libs/pkg-types.mjs +197 -0
  47. package/dist/_libs/quansync.mjs +90 -0
  48. package/dist/_libs/rc9.mjs +136 -0
  49. package/dist/_libs/readdirp.mjs +237 -0
  50. package/dist/_libs/resolve.mjs +689 -0
  51. package/dist/_libs/strip-literal.mjs +51 -0
  52. package/dist/_libs/tinyexec.mjs +627 -0
  53. package/dist/_libs/tinyglobby.mjs +2 -1
  54. package/dist/_libs/unimport.mjs +42 -1575
  55. package/dist/_libs/unplugin-utils.mjs +61 -0
  56. package/dist/_libs/unplugin.mjs +1225 -0
  57. package/dist/_libs/unwasm.mjs +3 -2
  58. package/dist/_libs/webpack-virtual-modules.mjs +272 -0
  59. package/dist/_nitro.mjs +5 -2
  60. package/dist/_nitro2.mjs +3 -3
  61. package/dist/_presets.mjs +5 -3
  62. package/dist/builder.mjs +4 -4
  63. package/dist/cli/_chunks/build.mjs +1 -1
  64. package/dist/cli/_chunks/dev.mjs +1 -1
  65. package/dist/cli/_chunks/list.mjs +1 -1
  66. package/dist/cli/_chunks/prepare.mjs +1 -1
  67. package/dist/cli/_chunks/run.mjs +1 -1
  68. package/dist/vite.mjs +1824 -19
  69. package/package.json +2 -2
  70. package/dist/_build/shared4.mjs +0 -1114
  71. package/dist/_build/vite.plugin.mjs +0 -712
@@ -0,0 +1,141 @@
1
+ import { t as decode } from "./sourcemap-codec.mjs";
2
+ import { t as resolve } from "./resolve-uri.mjs";
3
+
4
+ //#region node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs
5
+ function stripFilename(path) {
6
+ if (!path) return "";
7
+ const index = path.lastIndexOf("/");
8
+ return path.slice(0, index + 1);
9
+ }
10
+ function resolver(mapUrl, sourceRoot) {
11
+ const from = stripFilename(mapUrl);
12
+ const prefix = sourceRoot ? sourceRoot + "/" : "";
13
+ return (source) => resolve(prefix + (source || ""), from);
14
+ }
15
+ var COLUMN = 0;
16
+ function maybeSort(mappings, owned) {
17
+ const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
18
+ if (unsortedIndex === mappings.length) return mappings;
19
+ if (!owned) mappings = mappings.slice();
20
+ for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) mappings[i] = sortSegments(mappings[i], owned);
21
+ return mappings;
22
+ }
23
+ function nextUnsortedSegmentLine(mappings, start) {
24
+ for (let i = start; i < mappings.length; i++) if (!isSorted(mappings[i])) return i;
25
+ return mappings.length;
26
+ }
27
+ function isSorted(line) {
28
+ for (let j = 1; j < line.length; j++) if (line[j][COLUMN] < line[j - 1][COLUMN]) return false;
29
+ return true;
30
+ }
31
+ function sortSegments(line, owned) {
32
+ if (!owned) line = line.slice();
33
+ return line.sort(sortComparator);
34
+ }
35
+ function sortComparator(a, b) {
36
+ return a[COLUMN] - b[COLUMN];
37
+ }
38
+ var found = false;
39
+ function binarySearch(haystack, needle, low, high) {
40
+ while (low <= high) {
41
+ const mid = low + (high - low >> 1);
42
+ const cmp = haystack[mid][COLUMN] - needle;
43
+ if (cmp === 0) {
44
+ found = true;
45
+ return mid;
46
+ }
47
+ if (cmp < 0) low = mid + 1;
48
+ else high = mid - 1;
49
+ }
50
+ found = false;
51
+ return low - 1;
52
+ }
53
+ function upperBound(haystack, needle, index) {
54
+ for (let i = index + 1; i < haystack.length; index = i++) if (haystack[i][COLUMN] !== needle) break;
55
+ return index;
56
+ }
57
+ function lowerBound(haystack, needle, index) {
58
+ for (let i = index - 1; i >= 0; index = i--) if (haystack[i][COLUMN] !== needle) break;
59
+ return index;
60
+ }
61
+ function memoizedState() {
62
+ return {
63
+ lastKey: -1,
64
+ lastNeedle: -1,
65
+ lastIndex: -1
66
+ };
67
+ }
68
+ function memoizedBinarySearch(haystack, needle, state, key) {
69
+ const { lastKey, lastNeedle, lastIndex } = state;
70
+ let low = 0;
71
+ let high = haystack.length - 1;
72
+ if (key === lastKey) {
73
+ if (needle === lastNeedle) {
74
+ found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
75
+ return lastIndex;
76
+ }
77
+ if (needle >= lastNeedle) low = lastIndex === -1 ? 0 : lastIndex;
78
+ else high = lastIndex;
79
+ }
80
+ state.lastKey = key;
81
+ state.lastNeedle = needle;
82
+ return state.lastIndex = binarySearch(haystack, needle, low, high);
83
+ }
84
+ function parse(map) {
85
+ return typeof map === "string" ? JSON.parse(map) : map;
86
+ }
87
+ var LEAST_UPPER_BOUND = -1;
88
+ var GREATEST_LOWER_BOUND = 1;
89
+ var TraceMap = class {
90
+ constructor(map, mapUrl) {
91
+ const isString = typeof map === "string";
92
+ if (!isString && map._decodedMemo) return map;
93
+ const parsed = parse(map);
94
+ const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
95
+ this.version = version;
96
+ this.file = file;
97
+ this.names = names || [];
98
+ this.sourceRoot = sourceRoot;
99
+ this.sources = sources;
100
+ this.sourcesContent = sourcesContent;
101
+ this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
102
+ const resolve$1 = resolver(mapUrl, sourceRoot);
103
+ this.resolvedSources = sources.map(resolve$1);
104
+ const { mappings } = parsed;
105
+ if (typeof mappings === "string") {
106
+ this._encoded = mappings;
107
+ this._decoded = void 0;
108
+ } else if (Array.isArray(mappings)) {
109
+ this._encoded = void 0;
110
+ this._decoded = maybeSort(mappings, isString);
111
+ } else if (parsed.sections) throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`);
112
+ else throw new Error(`invalid source map: ${JSON.stringify(parsed)}`);
113
+ this._decodedMemo = memoizedState();
114
+ this._bySources = void 0;
115
+ this._bySourceMemos = void 0;
116
+ }
117
+ };
118
+ function cast(map) {
119
+ return map;
120
+ }
121
+ function decodedMappings(map) {
122
+ var _a;
123
+ return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
124
+ }
125
+ function traceSegment(map, line, column) {
126
+ const decoded = decodedMappings(map);
127
+ if (line >= decoded.length) return null;
128
+ const segments = decoded[line];
129
+ const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND);
130
+ return index === -1 ? null : segments[index];
131
+ }
132
+ function traceSegmentInternal(segments, memo, line, column, bias) {
133
+ let index = memoizedBinarySearch(segments, column, memo, line);
134
+ if (found) index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
135
+ else if (bias === LEAST_UPPER_BOUND) index++;
136
+ if (index === -1 || index === segments.length) return -1;
137
+ return index;
138
+ }
139
+
140
+ //#endregion
141
+ export { decodedMappings as n, traceSegment as r, TraceMap as t };
@@ -0,0 +1,31 @@
1
+ //#region node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.55/node_modules/@rolldown/pluginutils/dist/simple-filters.js
2
+ /**
3
+ * Constructs a RegExp that matches the exact string specified.
4
+ *
5
+ * This is useful for plugin hook filters.
6
+ *
7
+ * @param str the string to match.
8
+ * @param flags flags for the RegExp.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { exactRegex } from '@rolldown/pluginutils';
13
+ * const plugin = {
14
+ * name: 'plugin',
15
+ * resolveId: {
16
+ * filter: { id: exactRegex('foo') },
17
+ * handler(id) {} // will only be called for `foo`
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ function exactRegex(str, flags) {
23
+ return new RegExp(`^${escapeRegex(str)}$`, flags);
24
+ }
25
+ const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
26
+ function escapeRegex(str) {
27
+ return str.replace(escapeRegexRE, "\\$&");
28
+ }
29
+
30
+ //#endregion
31
+ export { exactRegex as t };