nitro-nightly 3.0.1-20260106-122901-e9c3a660 → 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 (72) hide show
  1. package/dist/_build/rolldown.mjs +11 -11
  2. package/dist/_build/rollup.mjs +19 -11
  3. package/dist/_build/shared.mjs +3 -2
  4. package/dist/_build/shared2.mjs +1 -1
  5. package/dist/_build/shared3.mjs +2 -2
  6. package/dist/_build/vite.build.mjs +8 -9
  7. package/dist/_dev.mjs +4 -3
  8. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +6 -1561
  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 +8 -1112
  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 +2 -235
  23. package/dist/_libs/commondir.mjs +22 -0
  24. package/dist/_libs/confbox.mjs +1511 -911
  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 +1380 -2238
  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 +7 -1561
  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/tsconfck.mjs +1 -1
  55. package/dist/_libs/unimport.mjs +93 -1617
  56. package/dist/_libs/unplugin-utils.mjs +61 -0
  57. package/dist/_libs/unplugin.mjs +1225 -0
  58. package/dist/_libs/unwasm.mjs +3 -2
  59. package/dist/_libs/webpack-virtual-modules.mjs +272 -0
  60. package/dist/_nitro.mjs +9 -7
  61. package/dist/_nitro2.mjs +6 -7
  62. package/dist/_presets.mjs +9 -7
  63. package/dist/builder.mjs +5 -5
  64. package/dist/cli/_chunks/build.mjs +1 -1
  65. package/dist/cli/_chunks/dev.mjs +1 -1
  66. package/dist/cli/_chunks/list.mjs +1 -1
  67. package/dist/cli/_chunks/prepare.mjs +1 -1
  68. package/dist/cli/_chunks/run.mjs +1 -1
  69. package/dist/vite.mjs +1825 -22
  70. package/package.json +2 -2
  71. package/dist/_build/shared4.mjs +0 -1112
  72. package/dist/_build/vite.plugin.mjs +0 -712
@@ -0,0 +1,61 @@
1
+ import { i as __toESM } from "../_rolldown.mjs";
2
+ import { a as isAbsolute, o as join, u as resolve } from "./pathe.mjs";
3
+ import { t as require_picomatch } from "./picomatch.mjs";
4
+
5
+ //#region node_modules/.pnpm/unplugin-utils@0.3.1/node_modules/unplugin-utils/dist/index.js
6
+ var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
7
+ /**
8
+ * Converts path separators to forward slash.
9
+ */
10
+ function normalizePath(filename) {
11
+ return filename.replaceAll("\\", "/");
12
+ }
13
+ const isArray = Array.isArray;
14
+ function toArray(thing) {
15
+ if (isArray(thing)) return thing;
16
+ if (thing == null) return [];
17
+ return [thing];
18
+ }
19
+ const escapeMark = "[_#EsCaPe#_]";
20
+ function getMatcherString(id, resolutionBase) {
21
+ if (resolutionBase === false || isAbsolute(id) || id.startsWith("**")) return normalizePath(id);
22
+ return join(normalizePath(resolve(resolutionBase || "")).replaceAll(/[-^$*+?.()|[\]{}]/g, `${escapeMark}$&`), normalizePath(id)).replaceAll(escapeMark, "\\");
23
+ }
24
+ /**
25
+ * Constructs a filter function which can be used to determine whether or not
26
+ * certain modules should be operated upon.
27
+ * @param include If `include` is omitted or has zero length, filter will return `true` by default.
28
+ * @param exclude ID must not match any of the `exclude` patterns.
29
+ * @param options Additional options.
30
+ * @param options.resolve Optionally resolves the patterns against a directory other than `process.cwd()`.
31
+ * If a `string` is specified, then the value will be used as the base directory.
32
+ * Relative paths will be resolved against `process.cwd()` first.
33
+ * If `false`, then the patterns will not be resolved against any directory.
34
+ * This can be useful if you want to create a filter for virtual module names.
35
+ */
36
+ function createFilter(include, exclude, options) {
37
+ const resolutionBase = options && options.resolve;
38
+ const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => {
39
+ return (0, import_picomatch.default)(getMatcherString(id, resolutionBase), { dot: true })(what);
40
+ } };
41
+ const includeMatchers = toArray(include).map(getMatcher);
42
+ const excludeMatchers = toArray(exclude).map(getMatcher);
43
+ if (!includeMatchers.length && !excludeMatchers.length) return (id) => typeof id === "string" && !id.includes("\0");
44
+ return function result(id) {
45
+ if (typeof id !== "string") return false;
46
+ if (id.includes("\0")) return false;
47
+ const pathId = normalizePath(id);
48
+ for (const matcher of excludeMatchers) {
49
+ if (matcher instanceof RegExp) matcher.lastIndex = 0;
50
+ if (matcher.test(pathId)) return false;
51
+ }
52
+ for (const matcher of includeMatchers) {
53
+ if (matcher instanceof RegExp) matcher.lastIndex = 0;
54
+ if (matcher.test(pathId)) return true;
55
+ }
56
+ return !includeMatchers.length;
57
+ };
58
+ }
59
+
60
+ //#endregion
61
+ export { createFilter as t };