@icebreakers/eslint-config 5.0.3 → 6.0.0

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.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_chunk = require("./chunk-BrWF7lJc.cjs");
2
+ const require_rolldown_runtime = require("./rolldown-runtime-DzWaZAza.cjs");
3
3
  let node_path = require("node:path");
4
- node_path = require_chunk.__toESM(node_path, 1);
4
+ node_path = require_rolldown_runtime.__toESM(node_path, 1);
5
5
  let node_process = require("node:process");
6
- node_process = require_chunk.__toESM(node_process, 1);
6
+ node_process = require_rolldown_runtime.__toESM(node_process, 1);
7
7
  let node_fs = require("node:fs");
8
- node_fs = require_chunk.__toESM(node_fs, 1);
8
+ node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
9
9
  let node_module = require("node:module");
10
10
  let node_url = require("node:url");
11
11
  //#region src/antfu.ts
12
- var antfu_exports = /* @__PURE__ */ require_chunk.__exportAll({});
13
- require_chunk.__reExport(antfu_exports, require("@antfu/eslint-config"));
12
+ var antfu_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({});
13
+ require_rolldown_runtime.__reExport(antfu_exports, require("@antfu/eslint-config"));
14
14
  //#endregion
15
15
  //#region src/defaults.ts
16
16
  const nestjsTypeScriptRules = {
@@ -54,6 +54,24 @@ function getDefaultVueOptions(opts) {
54
54
  overrides["vue/no-deprecated-slot-attribute"] = "off";
55
55
  overrides["vue/no-useless-template-attributes"] = "off";
56
56
  overrides["vue/singleline-html-element-content-newline"] = "off";
57
+ overrides["vue/no-restricted-props"] = [
58
+ "warn",
59
+ {
60
+ name: "id",
61
+ message: "小程序组件中声明 id prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
62
+ suggest: "customId"
63
+ },
64
+ {
65
+ name: "class",
66
+ message: "小程序组件中声明 class prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
67
+ suggest: "customClass"
68
+ },
69
+ {
70
+ name: "slot",
71
+ message: "小程序组件中声明 slot prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
72
+ suggest: "customSlot"
73
+ }
74
+ ];
57
75
  }
58
76
  return { overrides };
59
77
  }
@@ -163,7 +181,8 @@ function resolveTailwindPresets(option) {
163
181
  }
164
182
  if (!hasAllPackages(TAILWIND_PACKAGES)) return [];
165
183
  return [(0, antfu_exports.interopDefault)(import("eslint-plugin-tailwindcss")).then((tailwind) => {
166
- return tailwind.configs["flat/recommended"];
184
+ const tailwindPlugin = tailwind;
185
+ return tailwindPlugin.configs["flat/recommended"] ?? tailwindPlugin.configs.recommended ?? [];
167
186
  }), { rules: { "tailwindcss/no-custom-classname": "off" } }];
168
187
  }
169
188
  function resolveStylelintBridgeOptions(option) {
@@ -222,10 +241,10 @@ function resolveMdxPresets(isEnabled) {
222
241
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
223
242
  if (!isEnabled) return [];
224
243
  const presets = [];
225
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./dist-fjokZKZW.cjs").default, 1))).then((pluginVueA11y) => {
244
+ if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./dist-Cfcd4odI.cjs").default, 1))).then((pluginVueA11y) => {
226
245
  return pluginVueA11y.configs["flat/recommended"];
227
246
  }));
228
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-_LfrBdIh.cjs").default, 1))).then((jsxA11y) => {
247
+ if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(Promise.resolve().then(() => /* @__PURE__ */ require_rolldown_runtime.__toESM(require("./lib-CcedSpss.cjs").default, 1))).then((jsxA11y) => {
229
248
  return jsxA11y.flatConfigs.recommended;
230
249
  }));
231
250
  return presets;
@@ -240,7 +259,7 @@ function resolveNestPresets(isEnabled) {
240
259
  function resolveQueryPresets(isEnabled) {
241
260
  if (!isEnabled) return [];
242
261
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
243
- return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-D2OTfylT.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
262
+ return [(0, antfu_exports.interopDefault)(Promise.resolve().then(() => require("./modern-y8Mo-zyc.cjs"))).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
244
263
  }
245
264
  //#endregion
246
265
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
@@ -296,7 +315,7 @@ const BASE_RULES = {
296
315
  };
297
316
  const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
298
317
  const ANTFU_PACKAGE_DIR = node_path.default.dirname(require$1.resolve("@antfu/eslint-config/package.json"));
299
- const GENERAL_EDITORCONFIG_SECTIONS = new Set([
318
+ const GENERAL_EDITORCONFIG_SECTIONS = /* @__PURE__ */ new Set([
300
319
  "*",
301
320
  "**",
302
321
  "**/*",
@@ -484,6 +503,10 @@ function getPresets(options, mode) {
484
503
  {
485
504
  files: ["**/*.{css,scss,sass,less,pcss,postcss,json,jsonc,json5}"],
486
505
  rules: { "style/eol-last": "off" }
506
+ },
507
+ {
508
+ files: ["**/*.{json,jsonc,json5}"],
509
+ rules: { "unicorn/prefer-number-properties": "off" }
487
510
  }
488
511
  ];
489
512
  if (resolved.vue !== false && resolved.vue !== void 0) presets.push({
package/dist/index.d.cts CHANGED
@@ -1843,17 +1843,17 @@ interface Directive {
1843
1843
  justification?: string;
1844
1844
  }
1845
1845
  //#endregion
1846
- //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.1/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts
1846
+ //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.2/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts
1847
1847
  /**
1848
1848
  * Adds matching `:exit` selector properties for each key of a `RuleVisitor`.
1849
1849
  */
1850
1850
  type CustomRuleVisitorWithExit$1<RuleVisitorType extends RuleVisitor$1> = { [Key in keyof RuleVisitorType as Key | `${Key & string}:exit`]: RuleVisitorType[Key] };
1851
1851
  //#endregion
1852
- //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.1/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts
1852
+ //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.2/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts
1853
1853
  type RuleVisitor = RuleVisitor$1;
1854
1854
  type CustomRuleVisitorWithExit<RuleVisitorType extends RuleVisitor> = CustomRuleVisitorWithExit$1<RuleVisitorType>;
1855
1855
  //#endregion
1856
- //#region ../../node_modules/.pnpm/eslint@10.4.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
1856
+ //#region ../../node_modules/.pnpm/eslint@10.5.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
1857
1857
  //------------------------------------------------------------------------------
1858
1858
  // Exports
1859
1859
  //------------------------------------------------------------------------------
@@ -2201,6 +2201,15 @@ declare namespace Rule {
2201
2201
  [key: string]: ((codePath: CodePath, node: Node) => void) | ((segment: CodePathSegment, node: Node) => void) | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node) => void) | ((node: Node) => void) | NodeListener[keyof NodeListener] | undefined;
2202
2202
  }
2203
2203
  type CodePathOrigin = "program" | "function" | "class-field-initializer" | "class-static-block";
2204
+ interface CodePathSegmentTraversalController {
2205
+ skip(): void;
2206
+ break(): void;
2207
+ }
2208
+ type CodePathSegmentTraversalCallback = (this: CodePath, segment: CodePathSegment, controller: CodePathSegmentTraversalController) => void;
2209
+ interface CodePathTraversalOptions {
2210
+ first?: CodePathSegment | undefined;
2211
+ last?: CodePathSegment | undefined;
2212
+ }
2204
2213
  interface CodePath {
2205
2214
  id: string;
2206
2215
  origin: CodePathOrigin;
@@ -2210,11 +2219,15 @@ declare namespace Rule {
2210
2219
  thrownSegments: CodePathSegment[];
2211
2220
  upper: CodePath | null;
2212
2221
  childCodePaths: CodePath[];
2222
+ traverseSegments(callback: CodePathSegmentTraversalCallback): void;
2223
+ traverseSegments(options: CodePathTraversalOptions, callback: CodePathSegmentTraversalCallback): void;
2213
2224
  }
2214
2225
  interface CodePathSegment {
2215
2226
  id: string;
2216
2227
  nextSegments: CodePathSegment[];
2217
2228
  prevSegments: CodePathSegment[];
2229
+ allNextSegments: CodePathSegment[];
2230
+ allPrevSegments: CodePathSegment[];
2218
2231
  reachable: boolean;
2219
2232
  }
2220
2233
  type RuleMetaData = RulesMeta;
package/dist/index.d.ts CHANGED
@@ -1843,17 +1843,17 @@ interface Directive {
1843
1843
  justification?: string;
1844
1844
  }
1845
1845
  //#endregion
1846
- //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.1/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts
1846
+ //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.2/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts
1847
1847
  /**
1848
1848
  * Adds matching `:exit` selector properties for each key of a `RuleVisitor`.
1849
1849
  */
1850
1850
  type CustomRuleVisitorWithExit$1<RuleVisitorType extends RuleVisitor$1> = { [Key in keyof RuleVisitorType as Key | `${Key & string}:exit`]: RuleVisitorType[Key] };
1851
1851
  //#endregion
1852
- //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.1/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts
1852
+ //#region ../../node_modules/.pnpm/@eslint+plugin-kit@0.7.2/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts
1853
1853
  type RuleVisitor = RuleVisitor$1;
1854
1854
  type CustomRuleVisitorWithExit<RuleVisitorType extends RuleVisitor> = CustomRuleVisitorWithExit$1<RuleVisitorType>;
1855
1855
  //#endregion
1856
- //#region ../../node_modules/.pnpm/eslint@10.4.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
1856
+ //#region ../../node_modules/.pnpm/eslint@10.5.0_jiti@2.7.0/node_modules/eslint/lib/types/index.d.ts
1857
1857
  //------------------------------------------------------------------------------
1858
1858
  // Exports
1859
1859
  //------------------------------------------------------------------------------
@@ -2201,6 +2201,15 @@ declare namespace Rule {
2201
2201
  [key: string]: ((codePath: CodePath, node: Node) => void) | ((segment: CodePathSegment, node: Node) => void) | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node) => void) | ((node: Node) => void) | NodeListener[keyof NodeListener] | undefined;
2202
2202
  }
2203
2203
  type CodePathOrigin = "program" | "function" | "class-field-initializer" | "class-static-block";
2204
+ interface CodePathSegmentTraversalController {
2205
+ skip(): void;
2206
+ break(): void;
2207
+ }
2208
+ type CodePathSegmentTraversalCallback = (this: CodePath, segment: CodePathSegment, controller: CodePathSegmentTraversalController) => void;
2209
+ interface CodePathTraversalOptions {
2210
+ first?: CodePathSegment | undefined;
2211
+ last?: CodePathSegment | undefined;
2212
+ }
2204
2213
  interface CodePath {
2205
2214
  id: string;
2206
2215
  origin: CodePathOrigin;
@@ -2210,11 +2219,15 @@ declare namespace Rule {
2210
2219
  thrownSegments: CodePathSegment[];
2211
2220
  upper: CodePath | null;
2212
2221
  childCodePaths: CodePath[];
2222
+ traverseSegments(callback: CodePathSegmentTraversalCallback): void;
2223
+ traverseSegments(options: CodePathTraversalOptions, callback: CodePathSegmentTraversalCallback): void;
2213
2224
  }
2214
2225
  interface CodePathSegment {
2215
2226
  id: string;
2216
2227
  nextSegments: CodePathSegment[];
2217
2228
  prevSegments: CodePathSegment[];
2229
+ allNextSegments: CodePathSegment[];
2230
+ allPrevSegments: CodePathSegment[];
2218
2231
  reachable: boolean;
2219
2232
  }
2220
2233
  type RuleMetaData = RulesMeta;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as __reExport, o as __toESM, r as __exportAll } from "./chunk-DwxmvJxx.js";
1
+ import { i as __reExport, o as __toESM, r as __exportAll } from "./rolldown-runtime-C8SNSOcs.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import process from "node:process";
@@ -51,6 +51,24 @@ function getDefaultVueOptions(opts) {
51
51
  overrides["vue/no-deprecated-slot-attribute"] = "off";
52
52
  overrides["vue/no-useless-template-attributes"] = "off";
53
53
  overrides["vue/singleline-html-element-content-newline"] = "off";
54
+ overrides["vue/no-restricted-props"] = [
55
+ "warn",
56
+ {
57
+ name: "id",
58
+ message: "小程序组件中声明 id prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
59
+ suggest: "customId"
60
+ },
61
+ {
62
+ name: "class",
63
+ message: "小程序组件中声明 class prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
64
+ suggest: "customClass"
65
+ },
66
+ {
67
+ name: "slot",
68
+ message: "小程序组件中声明 slot prop 可能无法在 properties 中正确取值,请改用其他 prop 名称。",
69
+ suggest: "customSlot"
70
+ }
71
+ ];
54
72
  }
55
73
  return { overrides };
56
74
  }
@@ -160,7 +178,8 @@ function resolveTailwindPresets(option) {
160
178
  }
161
179
  if (!hasAllPackages(TAILWIND_PACKAGES)) return [];
162
180
  return [(0, antfu_exports.interopDefault)(import("eslint-plugin-tailwindcss")).then((tailwind) => {
163
- return tailwind.configs["flat/recommended"];
181
+ const tailwindPlugin = tailwind;
182
+ return tailwindPlugin.configs["flat/recommended"] ?? tailwindPlugin.configs.recommended ?? [];
164
183
  }), { rules: { "tailwindcss/no-custom-classname": "off" } }];
165
184
  }
166
185
  function resolveStylelintBridgeOptions(option) {
@@ -219,10 +238,10 @@ function resolveMdxPresets(isEnabled) {
219
238
  function resolveAccessibilityPresets(isEnabled, vueOption, reactOption) {
220
239
  if (!isEnabled) return [];
221
240
  const presets = [];
222
- if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-Q1ckojP1.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((pluginVueA11y) => {
241
+ if (vueOption && hasAllPackages(VUE_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./dist-DTWNkNCv.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((pluginVueA11y) => {
223
242
  return pluginVueA11y.configs["flat/recommended"];
224
243
  }));
225
- if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-CsDEZ3xL.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((jsxA11y) => {
244
+ if (reactOption && hasAllPackages(REACT_A11Y_PACKAGES)) presets.push((0, antfu_exports.interopDefault)(import("./lib-BOuqso-8.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).then((jsxA11y) => {
226
245
  return jsxA11y.flatConfigs.recommended;
227
246
  }));
228
247
  return presets;
@@ -237,7 +256,7 @@ function resolveNestPresets(isEnabled) {
237
256
  function resolveQueryPresets(isEnabled) {
238
257
  if (!isEnabled) return [];
239
258
  if (!hasAllPackages(QUERY_PACKAGES)) return [];
240
- return [(0, antfu_exports.interopDefault)(import("./modern-Bann1D4p.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
259
+ return [(0, antfu_exports.interopDefault)(import("./modern-CoGNcL7O.js")).then((pluginQuery) => pluginQuery.configs["flat/recommended"])];
241
260
  }
242
261
  //#endregion
243
262
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
@@ -293,7 +312,7 @@ const BASE_RULES = {
293
312
  };
294
313
  const require = createRequire(import.meta.url);
295
314
  const ANTFU_PACKAGE_DIR = path.dirname(require.resolve("@antfu/eslint-config/package.json"));
296
- const GENERAL_EDITORCONFIG_SECTIONS = new Set([
315
+ const GENERAL_EDITORCONFIG_SECTIONS = /* @__PURE__ */ new Set([
297
316
  "*",
298
317
  "**",
299
318
  "**/*",
@@ -481,6 +500,10 @@ function getPresets(options, mode) {
481
500
  {
482
501
  files: ["**/*.{css,scss,sass,less,pcss,postcss,json,jsonc,json5}"],
483
502
  rules: { "style/eol-last": "off" }
503
+ },
504
+ {
505
+ files: ["**/*.{json,jsonc,json5}"],
506
+ rules: { "unicorn/prefer-number-properties": "off" }
484
507
  }
485
508
  ];
486
509
  if (resolved.vue !== false && resolved.vue !== void 0) presets.push({
@@ -1,4 +1,4 @@
1
- import { a as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./chunk-DwxmvJxx.js";
1
+ import { a as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-C8SNSOcs.js";
2
2
  import { createRequire } from "node:module";
3
3
  //#region ../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/dist/jiti.cjs
4
4
  var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4208,7 +4208,7 @@ var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4208
4208
  function normalizeSlash(e) {
4209
4209
  return e.replace(/\\/g, "/");
4210
4210
  }
4211
- const rt = {}.hasOwnProperty, nt = /^([A-Z][a-z\d]*)+$/, at = new Set([
4211
+ const rt = {}.hasOwnProperty, nt = /^([A-Z][a-z\d]*)+$/, at = /* @__PURE__ */ new Set([
4212
4212
  "string",
4213
4213
  "function",
4214
4214
  "number",
@@ -4704,12 +4704,12 @@ var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4704
4704
  function pathToFileURL(e) {
4705
4705
  return (0, Qe.pathToFileURL)(fileURLToPath(e)).toString();
4706
4706
  }
4707
- const Ut = new Set(["node", "import"]), Mt = [
4707
+ const Ut = /* @__PURE__ */ new Set(["node", "import"]), Mt = [
4708
4708
  ".mjs",
4709
4709
  ".cjs",
4710
4710
  ".js",
4711
4711
  ".json"
4712
- ], jt = new Set([
4712
+ ], jt = /* @__PURE__ */ new Set([
4713
4713
  "ERR_MODULE_NOT_FOUND",
4714
4714
  "ERR_UNSUPPORTED_DIR_IMPORT",
4715
4715
  "MODULE_NOT_FOUND",
@@ -4769,7 +4769,7 @@ var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4769
4769
  if ("string" != typeof e) throw new TypeError("Expected a string");
4770
4770
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
4771
4771
  }
4772
- const $t = new Set([
4772
+ const $t = /* @__PURE__ */ new Set([
4773
4773
  "/",
4774
4774
  "\\",
4775
4775
  void 0
@@ -1,7 +1,7 @@
1
- const require_chunk = require("./chunk-BrWF7lJc.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DzWaZAza.cjs");
2
2
  let node_module = require("node:module");
3
3
  //#region ../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/dist/jiti.cjs
4
- var require_jiti = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
4
+ var require_jiti = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
5
5
  (() => {
6
6
  var e = {
7
7
  "./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(e) {
@@ -4208,7 +4208,7 @@ var require_jiti = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
4208
4208
  function normalizeSlash(e) {
4209
4209
  return e.replace(/\\/g, "/");
4210
4210
  }
4211
- const rt = {}.hasOwnProperty, nt = /^([A-Z][a-z\d]*)+$/, at = new Set([
4211
+ const rt = {}.hasOwnProperty, nt = /^([A-Z][a-z\d]*)+$/, at = /* @__PURE__ */ new Set([
4212
4212
  "string",
4213
4213
  "function",
4214
4214
  "number",
@@ -4704,12 +4704,12 @@ var require_jiti = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
4704
4704
  function pathToFileURL(e) {
4705
4705
  return (0, Qe.pathToFileURL)(fileURLToPath(e)).toString();
4706
4706
  }
4707
- const Ut = new Set(["node", "import"]), Mt = [
4707
+ const Ut = /* @__PURE__ */ new Set(["node", "import"]), Mt = [
4708
4708
  ".mjs",
4709
4709
  ".cjs",
4710
4710
  ".js",
4711
4711
  ".json"
4712
- ], jt = new Set([
4712
+ ], jt = /* @__PURE__ */ new Set([
4713
4713
  "ERR_MODULE_NOT_FOUND",
4714
4714
  "ERR_UNSUPPORTED_DIR_IMPORT",
4715
4715
  "MODULE_NOT_FOUND",
@@ -4769,7 +4769,7 @@ var require_jiti = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
4769
4769
  if ("string" != typeof e) throw new TypeError("Expected a string");
4770
4770
  return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
4771
4771
  }
4772
- const $t = new Set([
4772
+ const $t = /* @__PURE__ */ new Set([
4773
4773
  "/",
4774
4774
  "\\",
4775
4775
  void 0
@@ -5453,8 +5453,8 @@ function createJiti(id, opts = {}) {
5453
5453
  }
5454
5454
  var import_jiti, nativeImport, _transform;
5455
5455
  //#endregion
5456
- require_chunk.__esmMin((() => {
5457
- import_jiti = /* @__PURE__ */ require_chunk.__toESM(require_jiti(), 1);
5456
+ require_rolldown_runtime.__esmMin((() => {
5457
+ import_jiti = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_jiti(), 1);
5458
5458
  nativeImport = (id) => import(id);
5459
5459
  }))();
5460
5460
  exports.createJiti = createJiti;