dinou 9.3.0 → 10.0.1

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 (166) hide show
  1. package/CHANGELOG.md +196 -0
  2. package/README.md +157 -132
  3. package/dinou/adapters/bun.js +34 -5
  4. package/dinou/adapters/cloudflare.js +110 -17
  5. package/dinou/adapters/deno.js +46 -8
  6. package/dinou/adapters/netlify.js +86 -50
  7. package/dinou/adapters/node.js +8 -0
  8. package/dinou/assets.d.ts +32 -5
  9. package/dinou/bun/build.js +190 -106
  10. package/dinou/cli.js +992 -532
  11. package/dinou/cloudflare/build.js +187 -106
  12. package/dinou/compiled/autoprefixer/index.js +509 -517
  13. package/dinou/compiled/babel-core/index.js +738 -716
  14. package/dinou/compiled/babel-generator/index.js +341 -299
  15. package/dinou/compiled/babel-loader/index.js +766 -744
  16. package/dinou/compiled/babel-parser/index.js +2 -2
  17. package/dinou/compiled/babel-plugin-react-compiler/index.js +178 -178
  18. package/dinou/compiled/babel-plugin-syntax-import-meta/index.js +4 -4
  19. package/dinou/compiled/babel-preset-react/index.js +752 -730
  20. package/dinou/compiled/babel-preset-typescript/index.js +738 -716
  21. package/dinou/compiled/babel-traverse/index.js +463 -433
  22. package/dinou/compiled/babel-types/index.js +176 -176
  23. package/dinou/compiled/chokidar/index.js +4 -4
  24. package/dinou/compiled/commander/index.js +15 -15
  25. package/dinou/compiled/copy-webpack-plugin/index.js +433 -425
  26. package/dinou/compiled/css-loader/index.js +289 -289
  27. package/dinou/compiled/css-loader/runtime/api.js +85 -0
  28. package/dinou/compiled/css-loader/runtime/getUrl.js +26 -0
  29. package/dinou/compiled/css-loader/runtime/noSourceMaps.js +5 -0
  30. package/dinou/compiled/css-loader/runtime/package.json +3 -0
  31. package/dinou/compiled/css-loader/runtime/sourceMaps.js +16 -0
  32. package/dinou/compiled/fast-glob/index.js +5810 -0
  33. package/dinou/compiled/generic-names/index.js +16 -16
  34. package/dinou/compiled/mini-css-extract-plugin/{chunk-YYEJWYXE.js → chunk-R6DP5ZYM.js} +36 -36
  35. package/dinou/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +253 -0
  36. package/dinou/compiled/mini-css-extract-plugin/hmr/normalize-url.js +39 -0
  37. package/dinou/compiled/mini-css-extract-plugin/hmr/package.json +3 -0
  38. package/dinou/compiled/mini-css-extract-plugin/index.js +1 -1
  39. package/dinou/compiled/mini-css-extract-plugin/loader.js +5 -5
  40. package/dinou/compiled/postcss/index.js +83 -83
  41. package/dinou/compiled/postcss-import/index.js +147 -117
  42. package/dinou/compiled/postcss-modules/index.js +216 -216
  43. package/dinou/compiled/resolve/index.js +1224 -0
  44. package/dinou/compiled/rollup-plugin-babel/index.js +753 -731
  45. package/dinou/compiled/rollup-plugin-commonjs/index.js +43 -38
  46. package/dinou/compiled/rollup-plugin-delete/index.js +615 -253
  47. package/dinou/compiled/rollup-plugin-json/index.js +22 -18
  48. package/dinou/compiled/rollup-plugin-node-resolve/index.js +130 -100
  49. package/dinou/compiled/rollup-plugin-postcss/index.js +3299 -3277
  50. package/dinou/compiled/rollup-plugin-replace/index.js +34 -29
  51. package/dinou/compiled/tailwindcss-postcss/index.js +214 -211
  52. package/dinou/compiled/vendors-manifest.json +59 -83
  53. package/dinou/core/asset-extensions.js +482 -33
  54. package/dinou/core/bailout-proxy.js +21 -2
  55. package/dinou/core/build-static-pages.js +523 -371
  56. package/dinou/core/builtin-asset-extensions.js +63 -0
  57. package/dinou/core/cache-revalidate.js +449 -256
  58. package/dinou/core/cache-slot.js +289 -79
  59. package/dinou/core/client-webpack.jsx +470 -39
  60. package/dinou/core/client.jsx +402 -39
  61. package/dinou/core/config.js +3 -0
  62. package/dinou/core/copy-static-dirs.js +98 -0
  63. package/dinou/core/createScopedName.js +22 -4
  64. package/dinou/core/dinou-paths.js +1 -1
  65. package/dinou/core/discover-layouts.js +200 -0
  66. package/dinou/core/edge-ssr.js +1 -1
  67. package/dinou/core/ensure-vendor-mode.js +78 -19
  68. package/dinou/core/env.js +544 -0
  69. package/dinou/core/export-static.js +41 -9
  70. package/dinou/core/generate-route-types.js +989 -95
  71. package/dinou/core/generate-static-rsc.js +5 -6
  72. package/dinou/core/generate-static.js +45 -6
  73. package/dinou/core/get-abs-path-with-ext.js +217 -75
  74. package/dinou/core/get-asset-from-manifest.js +19 -8
  75. package/dinou/core/get-error-jsx.js +4 -5
  76. package/dinou/core/get-file-path-and-dynamic-params.js +561 -338
  77. package/dinou/core/get-jsx.js +220 -53
  78. package/dinou/core/handler.js +1647 -466
  79. package/dinou/core/import-module.js +7 -0
  80. package/dinou/core/layout-functions.js +72 -13
  81. package/dinou/core/link.jsx +34 -6
  82. package/dinou/core/load-dinou-config.js +520 -89
  83. package/dinou/core/manifest-provider.js +4 -14
  84. package/dinou/core/navigation-utils.js +141 -3
  85. package/dinou/core/navigation.js +134 -50
  86. package/dinou/core/node-middleware-runner.js +165 -0
  87. package/dinou/core/postcss-pipeline.js +236 -0
  88. package/dinou/core/ppr-context.js +114 -22
  89. package/dinou/core/ppr-runtime.js +391 -127
  90. package/dinou/core/redirect.jsx +1 -1
  91. package/dinou/core/render-jsx-to-client-jsx.js +216 -48
  92. package/dinou/core/request-context.js +59 -3
  93. package/dinou/core/resolve-contextual-dinou.js +523 -0
  94. package/dinou/core/resolve-setup-files.js +85 -27
  95. package/dinou/core/revalidating.js +10 -2
  96. package/dinou/core/route-generator.js +6 -2
  97. package/dinou/core/rsc-renderer.js +4 -1
  98. package/dinou/core/run-ssg.js +6 -0
  99. package/dinou/core/runtime-env.js +265 -0
  100. package/dinou/core/server-css-modules-plugin.js +155 -0
  101. package/dinou/core/server-function-proxy-webpack.js +27 -2
  102. package/dinou/core/server-function-proxy.js +27 -2
  103. package/dinou/core/slot.js +47 -2
  104. package/dinou/core/static-assets.js +503 -0
  105. package/dinou/core/storage-adapter.js +452 -24
  106. package/dinou/core/transform-server-functions.js +272 -24
  107. package/dinou/core/tsconfig-aliases.js +964 -0
  108. package/dinou/core/uneject.js +640 -0
  109. package/dinou/core/url-resolver.js +1 -1
  110. package/dinou/core/vfs.js +11 -2
  111. package/dinou/css.d.ts +4 -1
  112. package/dinou/deno/build.js +205 -153
  113. package/dinou/deno/seed-kv.js +4 -0
  114. package/dinou/env.d.ts +22 -2
  115. package/dinou/esbuild/build.js +40 -50
  116. package/dinou/esbuild/dev.js +33 -7
  117. package/dinou/esbuild/helpers-esbuild/get-config-esbuild-prod.js +41 -16
  118. package/dinou/esbuild/helpers-esbuild/get-config-esbuild.js +51 -49
  119. package/dinou/esbuild/helpers-esbuild/get-esbuild-entries.js +73 -60
  120. package/dinou/esbuild/helpers-esbuild/swc-disk-cache.js +35 -16
  121. package/dinou/esbuild/helpers-esbuild/write.js +13 -3
  122. package/dinou/esbuild/plugins-esbuild/assets-plugin.js +100 -238
  123. package/dinou/esbuild/plugins-esbuild/babel-react-compiler-plugin.js +73 -29
  124. package/dinou/esbuild/plugins-esbuild/css-processor-plugin.js +283 -91
  125. package/dinou/esbuild/plugins-esbuild/manifest-generator-plugin.js +3 -5
  126. package/dinou/esbuild/plugins-esbuild/react-client-manifest-plugin.js +9 -3
  127. package/dinou/esbuild/plugins-esbuild/server-functions-plugin.js +4 -3
  128. package/dinou/esbuild/plugins-esbuild/stable-chunk-names-and-maps-plugin.js +10 -1
  129. package/dinou/esbuild/plugins-postcss/postcss-extract-plugin.js +84 -21
  130. package/dinou/esbuild/react-refresh/esm-hmr/client.js +31 -10
  131. package/dinou/esbuild/react-refresh/esm-hmr-plugin.js +48 -18
  132. package/dinou/esbuild/react-refresh/is-react-refresh-boundary.js +9 -1
  133. package/dinou/esbuild/react-refresh/react-refresh-runtime.js +13 -7
  134. package/dinou/index.d.ts +1028 -88
  135. package/dinou/node/build.js +138 -74
  136. package/dinou/node/bundle-dual-engine.js +393 -131
  137. package/dinou/node/dev.js +1005 -275
  138. package/dinou/package.json +11 -34
  139. package/dinou/rollup/postcss.config.js +3 -4
  140. package/dinou/rollup/react-refresh/esm-hmr/client.js +31 -10
  141. package/dinou/rollup/react-refresh/react-refresh-wrap-modules.js +16 -13
  142. package/dinou/rollup/react-refresh/rollup-plugin-esm-hmr.js +53 -7
  143. package/dinou/rollup/rollup-plugins/dinou-asset-plugin.js +58 -20
  144. package/dinou/rollup/rollup-plugins/manifest-generator-plugin.js +16 -7
  145. package/dinou/rollup/rollup-plugins/rollup-plugin-react-client-manifest.js +118 -42
  146. package/dinou/rollup/rollup-plugins/rollup-plugin-server-functions.js +48 -36
  147. package/dinou/rollup/rollup.config.js +174 -101
  148. package/dinou/scripts/build-vendors.js +123 -33
  149. package/dinou/server.d.ts +126 -15
  150. package/dinou/webpack/helpers/get-webpack-entries.js +87 -41
  151. package/dinou/webpack/helpers/patch-webpack-internals.js +93 -1
  152. package/dinou/webpack/loaders/server-functions-loader.js +1 -1
  153. package/dinou/webpack/plugins/manifest-generator-plugin.js +27 -7
  154. package/dinou/webpack/plugins/server-functions-plugin.js +39 -12
  155. package/dinou/webpack/plugins/webpack-memory-plugin.js +25 -12
  156. package/dinou/webpack/postcss.config.js +3 -4
  157. package/dinou/webpack/webpack.config.js +408 -132
  158. package/eject.js +6 -224
  159. package/package.json +7 -9
  160. package/dinou/compiled/cross-env/index.js +0 -661
  161. package/dinou/compiled/dotenv/index.js +0 -375
  162. package/dinou/compiled/esbuild-copy-static-files/index.js +0 -63
  163. package/dinou/compiled/esbuild-tsconfig-paths/index.js +0 -1314
  164. package/dinou/compiled/rollup-plugin-copy/index.js +0 -12066
  165. package/dinou/compiled/rollup-plugin-tsconfig-paths/index.js +0 -569
  166. package/dinou/compiled/tsconfig-paths-webpack-plugin/index.js +0 -3956
@@ -0,0 +1,964 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
+ import { builtinModules, createRequire } from "node:module";
4
+ import { BUILTIN_ASSET_REGEX as DEFAULT_ASSET_REGEX } from "./builtin-asset-extensions.js";
5
+
6
+ const NODE_BUILTINS = new Set([
7
+ ...builtinModules,
8
+ ...builtinModules.map((b) => (b.startsWith("node:") ? b.slice(5) : `node:${b}`)),
9
+ ]);
10
+
11
+ export const DEFAULT_ALIAS_CODE_EXTENSIONS = [
12
+ ".tsx",
13
+ ".ts",
14
+ ".jsx",
15
+ ".js",
16
+ ".mjs",
17
+ ".cjs",
18
+ ".mts",
19
+ ".cts",
20
+ ".json",
21
+ ".css",
22
+ ".scss",
23
+ ".sass",
24
+ ".less",
25
+ ];
26
+
27
+ export const DEFAULT_ALIAS_STYLE_EXTENSIONS = [
28
+ ".css",
29
+ ".scss",
30
+ ".sass",
31
+ ".less",
32
+ ".tsx",
33
+ ".ts",
34
+ ".jsx",
35
+ ".js",
36
+ ".mjs",
37
+ ".cjs",
38
+ ".json",
39
+ ];
40
+
41
+ const EXTENSION_SUBSTITUTIONS = {
42
+ ".js": [".ts", ".tsx", ".jsx"],
43
+ ".jsx": [".tsx"],
44
+ ".mjs": [".mts"],
45
+ ".cjs": [".cts"],
46
+ };
47
+
48
+ const aliasCacheByRoot = new Map();
49
+
50
+ export function stripJsonCommentsAndTrailingCommas(raw) {
51
+ if (typeof raw !== "string") return "";
52
+ const noBom = raw.charCodeAt(0) === 0xfeff ? raw.slice(1) : raw;
53
+ const withoutComments = noBom.replace(
54
+ /"(?:\\.|[^"\\])*"|\/\*[\s\S]*?\*\/|\/\/[^\r\n]*/g,
55
+ (match) => (match.startsWith('"') ? match : "")
56
+ );
57
+ return withoutComments.replace(/,(\s*[}\]])/g, "$1");
58
+ }
59
+
60
+ function normalizeCacheRootKey(dirPath) {
61
+ const resolved = path.resolve(dirPath || process.cwd()).replace(/\\/g, "/");
62
+ return process.platform === "win32" ? resolved.toLowerCase() : resolved;
63
+ }
64
+
65
+ function getFileMtimeMs(filePath) {
66
+ try {
67
+ const st = fs.statSync(filePath);
68
+ return st.isFile() ? st.mtimeMs : -1;
69
+ } catch (e) {
70
+ return -1;
71
+ }
72
+ }
73
+
74
+ function isExistingFile(filePath) {
75
+ if (!filePath) return false;
76
+ try {
77
+ return fs.existsSync(filePath) && fs.statSync(filePath).isFile();
78
+ } catch (e) {
79
+ return false;
80
+ }
81
+ }
82
+
83
+ function isExistingDirectory(dirPath) {
84
+ if (!dirPath) return false;
85
+ try {
86
+ return fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory();
87
+ } catch (e) {
88
+ return false;
89
+ }
90
+ }
91
+
92
+ function expandConfigDirToken(value, configDir) {
93
+ if (typeof value !== "string" || !value.includes("${configDir}")) {
94
+ return value;
95
+ }
96
+ return value.replace(/\$\{configDir\}/g, configDir);
97
+ }
98
+
99
+ function resolveExtendedConfigPath(fromConfigFile, extendsSpecifier) {
100
+ if (!extendsSpecifier || typeof extendsSpecifier !== "string") return null;
101
+ const fromDir = path.dirname(fromConfigFile);
102
+ const expanded = expandConfigDirToken(extendsSpecifier.trim(), fromDir);
103
+ if (!expanded) return null;
104
+
105
+ const tryLocalPath = (rawTarget) => {
106
+ const abs = path.resolve(fromDir, rawTarget);
107
+ if (isExistingFile(abs)) return abs;
108
+ if (!abs.endsWith(".json") && isExistingFile(abs + ".json")) {
109
+ return abs + ".json";
110
+ }
111
+ if (isExistingDirectory(abs)) {
112
+ const nested = path.join(abs, "tsconfig.json");
113
+ if (isExistingFile(nested)) return nested;
114
+ }
115
+ return null;
116
+ };
117
+
118
+ if (
119
+ expanded.startsWith("./") ||
120
+ expanded.startsWith("../") ||
121
+ expanded.startsWith("/") ||
122
+ expanded.startsWith("\\") ||
123
+ path.isAbsolute(expanded)
124
+ ) {
125
+ return tryLocalPath(expanded);
126
+ }
127
+
128
+ // Package preset inside node_modules (e.g. "@tsconfig/node20/tsconfig.json", "@tsconfig/node20" via package.json#tsconfig, or "@acme/tsconfig/base")
129
+ try {
130
+ const req = createRequire(fromConfigFile);
131
+ try {
132
+ const pkgJsonPath = req.resolve(`${expanded}/package.json`);
133
+ if (isExistingFile(pkgJsonPath)) {
134
+ const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf8"));
135
+ if (pkgJson && typeof pkgJson.tsconfig === "string" && pkgJson.tsconfig.trim()) {
136
+ const tsconfigEntry = path.resolve(
137
+ path.dirname(pkgJsonPath),
138
+ pkgJson.tsconfig.trim()
139
+ );
140
+ if (isExistingFile(tsconfigEntry)) return tsconfigEntry;
141
+ }
142
+ }
143
+ } catch (e) {}
144
+ for (const candidate of [
145
+ expanded,
146
+ expanded.endsWith(".json") ? null : `${expanded}.json`,
147
+ `${expanded}/tsconfig.json`,
148
+ ]) {
149
+ if (!candidate) continue;
150
+ try {
151
+ const resolved = req.resolve(candidate);
152
+ if (isExistingFile(resolved)) return path.resolve(resolved);
153
+ } catch (e) {}
154
+ }
155
+ } catch (e) {}
156
+
157
+ // Fallback relative lookup (TypeScript also allows relative-like extends in edge cases)
158
+ return tryLocalPath(expanded);
159
+ }
160
+
161
+ function loadConfigChainRecursive(configFilePath, visited, trackedFiles) {
162
+ const absConfigPath = path.resolve(configFilePath);
163
+ const visitKey = normalizeCacheRootKey(absConfigPath);
164
+ if (visited.has(visitKey)) {
165
+ return {
166
+ compilerOptions: {},
167
+ hasExplicitBaseUrl: false,
168
+ absoluteBaseUrl: null,
169
+ rawPaths: null,
170
+ pathsBaseDir: null,
171
+ };
172
+ }
173
+ visited.add(visitKey);
174
+
175
+ const mtimeMs = getFileMtimeMs(absConfigPath);
176
+ trackedFiles.push({ path: absConfigPath, mtimeMs });
177
+ if (mtimeMs < 0) {
178
+ return {
179
+ compilerOptions: {},
180
+ hasExplicitBaseUrl: false,
181
+ absoluteBaseUrl: null,
182
+ rawPaths: null,
183
+ pathsBaseDir: null,
184
+ };
185
+ }
186
+
187
+ let parsed = {};
188
+ try {
189
+ const raw = fs.readFileSync(absConfigPath, "utf8");
190
+ parsed = JSON.parse(stripJsonCommentsAndTrailingCommas(raw)) || {};
191
+ } catch (e) {
192
+ return {
193
+ compilerOptions: {},
194
+ hasExplicitBaseUrl: false,
195
+ absoluteBaseUrl: null,
196
+ rawPaths: null,
197
+ pathsBaseDir: null,
198
+ };
199
+ }
200
+
201
+ let mergedCompilerOptions = {};
202
+ let hasExplicitBaseUrl = false;
203
+ let absoluteBaseUrl = null;
204
+ let rawPaths = null;
205
+ let pathsBaseDir = null;
206
+
207
+ const extendsField = parsed.extends;
208
+ if (extendsField) {
209
+ const extendsList = Array.isArray(extendsField)
210
+ ? extendsField
211
+ : [extendsField];
212
+ for (const extItem of extendsList) {
213
+ const parentPath = resolveExtendedConfigPath(absConfigPath, extItem);
214
+ if (!parentPath) continue;
215
+ const parentRes = loadConfigChainRecursive(
216
+ parentPath,
217
+ visited,
218
+ trackedFiles
219
+ );
220
+ mergedCompilerOptions = {
221
+ ...mergedCompilerOptions,
222
+ ...parentRes.compilerOptions,
223
+ };
224
+ if (parentRes.hasExplicitBaseUrl && parentRes.absoluteBaseUrl) {
225
+ hasExplicitBaseUrl = true;
226
+ absoluteBaseUrl = parentRes.absoluteBaseUrl;
227
+ }
228
+ if (parentRes.rawPaths) {
229
+ rawPaths = parentRes.rawPaths;
230
+ pathsBaseDir = parentRes.pathsBaseDir;
231
+ }
232
+ }
233
+ }
234
+
235
+ const configDir = path.dirname(absConfigPath);
236
+ const ownCompilerOptions =
237
+ parsed.compilerOptions && typeof parsed.compilerOptions === "object"
238
+ ? parsed.compilerOptions
239
+ : {};
240
+
241
+ mergedCompilerOptions = {
242
+ ...mergedCompilerOptions,
243
+ ...ownCompilerOptions,
244
+ };
245
+
246
+ if (typeof ownCompilerOptions.baseUrl === "string" && ownCompilerOptions.baseUrl.trim() !== "") {
247
+ const expandedBase = expandConfigDirToken(
248
+ ownCompilerOptions.baseUrl.trim(),
249
+ configDir
250
+ );
251
+ hasExplicitBaseUrl = true;
252
+ absoluteBaseUrl = path.resolve(configDir, expandedBase);
253
+ }
254
+
255
+ if (ownCompilerOptions.paths && typeof ownCompilerOptions.paths === "object") {
256
+ const expandedPaths = {};
257
+ for (const [pattern, rawTargets] of Object.entries(ownCompilerOptions.paths)) {
258
+ const targetList = Array.isArray(rawTargets) ? rawTargets : [rawTargets];
259
+ expandedPaths[pattern] = targetList
260
+ .filter((t) => typeof t === "string" && t.length > 0)
261
+ .map((t) => expandConfigDirToken(t, configDir));
262
+ }
263
+ rawPaths = expandedPaths;
264
+ pathsBaseDir = configDir;
265
+ }
266
+
267
+ return {
268
+ compilerOptions: mergedCompilerOptions,
269
+ hasExplicitBaseUrl,
270
+ absoluteBaseUrl,
271
+ rawPaths,
272
+ pathsBaseDir,
273
+ };
274
+ }
275
+
276
+ function findRootConfigFile(rootAbs) {
277
+ const tsconfigPath = path.resolve(rootAbs, "tsconfig.json");
278
+ if (isExistingFile(tsconfigPath)) return tsconfigPath;
279
+ const jsconfigPath = path.resolve(rootAbs, "jsconfig.json");
280
+ if (isExistingFile(jsconfigPath)) return jsconfigPath;
281
+ return null;
282
+ }
283
+
284
+ function isCachedEntryFresh(entry, rootAbs) {
285
+ if (!entry) return false;
286
+ const currentRootConfig = findRootConfigFile(rootAbs);
287
+ if ((currentRootConfig || null) !== (entry.configFile || null)) {
288
+ return false;
289
+ }
290
+ for (const tracked of entry.configFiles) {
291
+ if (getFileMtimeMs(tracked.path) !== tracked.mtimeMs) {
292
+ return false;
293
+ }
294
+ }
295
+ return true;
296
+ }
297
+
298
+ function compileAliasRules({
299
+ rootAbs,
300
+ rawPaths,
301
+ effectiveBaseDir,
302
+ hasExplicitBaseUrl,
303
+ absoluteBaseUrl,
304
+ }) {
305
+ const userRules = [];
306
+ const pathsObj = rawPaths && typeof rawPaths === "object" ? rawPaths : {};
307
+ let order = 0;
308
+
309
+ for (const [pattern, rawTargets] of Object.entries(pathsObj)) {
310
+ if (!pattern || typeof pattern !== "string") continue;
311
+ const targets = (Array.isArray(rawTargets) ? rawTargets : [rawTargets]).filter(
312
+ (t) => typeof t === "string" && t.length > 0
313
+ );
314
+ if (targets.length === 0) continue;
315
+
316
+ const starIdx = pattern.indexOf("*");
317
+ if (starIdx === -1) {
318
+ userRules.push({
319
+ pattern,
320
+ isWildcard: false,
321
+ prefix: pattern,
322
+ suffix: "",
323
+ targets,
324
+ baseDir: effectiveBaseDir,
325
+ isFallback: false,
326
+ isBaseUrlFallback: false,
327
+ order: order++,
328
+ });
329
+ } else {
330
+ const prefix = pattern.slice(0, starIdx);
331
+ const suffix = pattern.slice(starIdx + 1);
332
+ userRules.push({
333
+ pattern,
334
+ isWildcard: true,
335
+ prefix,
336
+ suffix,
337
+ targets,
338
+ baseDir: effectiveBaseDir,
339
+ isFallback: false,
340
+ isBaseUrlFallback: false,
341
+ order: order++,
342
+ });
343
+ }
344
+ }
345
+
346
+ // TypeScript `paths` specificity sort:
347
+ // 1. Exact matches (no `*`) always take priority over wildcard patterns.
348
+ // 2. Wildcard patterns with longer `prefix` win (`@ui/icons/*` before `@ui/*` before `@/*`).
349
+ // 3. Tie-break on longer `suffix`, then declaration order.
350
+ userRules.sort((a, b) => {
351
+ if (a.isWildcard !== b.isWildcard) {
352
+ return a.isWildcard ? 1 : -1;
353
+ }
354
+ if (!a.isWildcard) {
355
+ return a.order - b.order;
356
+ }
357
+ if (b.prefix.length !== a.prefix.length) {
358
+ return b.prefix.length - a.prefix.length;
359
+ }
360
+ if (b.suffix.length !== a.suffix.length) {
361
+ return b.suffix.length - a.suffix.length;
362
+ }
363
+ return a.order - b.order;
364
+ });
365
+
366
+ const fallbackRules = [];
367
+
368
+ // Zero-config Dinou fallbacks (`@/*` and `~/*` -> `<projectRoot>/src/*`) when not explicitly mapped
369
+ if (!Object.prototype.hasOwnProperty.call(pathsObj, "@/*")) {
370
+ fallbackRules.push({
371
+ pattern: "@/*",
372
+ isWildcard: true,
373
+ prefix: "@/",
374
+ suffix: "",
375
+ targets: ["src/*"],
376
+ baseDir: rootAbs,
377
+ isFallback: true,
378
+ isBaseUrlFallback: false,
379
+ order: order++,
380
+ });
381
+ }
382
+ if (!Object.prototype.hasOwnProperty.call(pathsObj, "~/*")) {
383
+ fallbackRules.push({
384
+ pattern: "~/*",
385
+ isWildcard: true,
386
+ prefix: "~/",
387
+ suffix: "",
388
+ targets: ["src/*"],
389
+ baseDir: rootAbs,
390
+ isFallback: true,
391
+ isBaseUrlFallback: false,
392
+ order: order++,
393
+ });
394
+ }
395
+
396
+ // Explicit `baseUrl` non-relative lookup (e.g. `"baseUrl": "./src"` with `import "lib/math"`)
397
+ if (hasExplicitBaseUrl && absoluteBaseUrl && !Object.prototype.hasOwnProperty.call(pathsObj, "*")) {
398
+ fallbackRules.push({
399
+ pattern: "*",
400
+ isWildcard: true,
401
+ prefix: "",
402
+ suffix: "",
403
+ targets: ["*"],
404
+ baseDir: absoluteBaseUrl,
405
+ isFallback: true,
406
+ isBaseUrlFallback: true,
407
+ order: order++,
408
+ });
409
+ }
410
+
411
+ return [...userRules, ...fallbackRules];
412
+ }
413
+
414
+ export function clearTsconfigAliasCache(projectRoot = null) {
415
+ if (!projectRoot) {
416
+ aliasCacheByRoot.clear();
417
+ return;
418
+ }
419
+ aliasCacheByRoot.delete(normalizeCacheRootKey(projectRoot));
420
+ }
421
+
422
+ export function inferProjectRootFromDir(startDir, explicitCwd = null) {
423
+ if (explicitCwd) {
424
+ return path.resolve(explicitCwd);
425
+ }
426
+ const cwdAbs = path.resolve(process.cwd());
427
+ if (!startDir) {
428
+ return cwdAbs;
429
+ }
430
+
431
+ const startAbs = path.resolve(startDir);
432
+ const normCwd = normalizeCacheRootKey(cwdAbs);
433
+ const normStart = normalizeCacheRootKey(startAbs);
434
+ if (normStart === normCwd || normStart.startsWith(normCwd + "/")) {
435
+ // Walk up from startAbs stopping at cwdAbs in case a nested fixture root exists in tests,
436
+ // otherwise default to cwdAbs.
437
+ let cur = startAbs;
438
+ while (true) {
439
+ if (findRootConfigFile(cur)) {
440
+ return cur;
441
+ }
442
+ if (normalizeCacheRootKey(cur) === normCwd) {
443
+ return cwdAbs;
444
+ }
445
+ const parent = path.dirname(cur);
446
+ if (parent === cur) break;
447
+ cur = parent;
448
+ }
449
+ return cwdAbs;
450
+ }
451
+
452
+ let cur = startAbs;
453
+ while (true) {
454
+ if (findRootConfigFile(cur)) {
455
+ return cur;
456
+ }
457
+ const parent = path.dirname(cur);
458
+ if (parent === cur) break;
459
+ cur = parent;
460
+ }
461
+ return cwdAbs;
462
+ }
463
+
464
+ export function loadTsconfigAliasInfo(projectRoot = process.cwd()) {
465
+ const rootAbs = path.resolve(projectRoot || process.cwd());
466
+ const cacheKey = normalizeCacheRootKey(rootAbs);
467
+ const cached = aliasCacheByRoot.get(cacheKey);
468
+ if (isCachedEntryFresh(cached, rootAbs)) {
469
+ return cached;
470
+ }
471
+
472
+ const rootConfig = findRootConfigFile(rootAbs);
473
+ const trackedFiles = [];
474
+ let compilerOptions = {};
475
+ let hasExplicitBaseUrl = false;
476
+ let absoluteBaseUrl = null;
477
+ let rawPaths = null;
478
+ let pathsBaseDir = null;
479
+
480
+ if (rootConfig) {
481
+ const loaded = loadConfigChainRecursive(
482
+ rootConfig,
483
+ new Set(),
484
+ trackedFiles
485
+ );
486
+ compilerOptions = loaded.compilerOptions;
487
+ hasExplicitBaseUrl = loaded.hasExplicitBaseUrl;
488
+ absoluteBaseUrl = loaded.absoluteBaseUrl;
489
+ rawPaths = loaded.rawPaths;
490
+ pathsBaseDir = loaded.pathsBaseDir;
491
+ }
492
+
493
+ const effectiveBaseDir = absoluteBaseUrl || pathsBaseDir || rootAbs;
494
+ const rules = compileAliasRules({
495
+ rootAbs,
496
+ rawPaths,
497
+ effectiveBaseDir,
498
+ hasExplicitBaseUrl,
499
+ absoluteBaseUrl,
500
+ });
501
+
502
+ const entry = {
503
+ projectRoot: rootAbs,
504
+ configFile: rootConfig,
505
+ configFiles: trackedFiles,
506
+ compilerOptions,
507
+ hasExplicitBaseUrl,
508
+ absoluteBaseUrl,
509
+ effectiveBaseDir,
510
+ rawPaths: rawPaths || {},
511
+ rules,
512
+ };
513
+
514
+ aliasCacheByRoot.set(cacheKey, entry);
515
+ return entry;
516
+ }
517
+
518
+ export function getWatchedTsconfigFiles(projectRoot = process.cwd()) {
519
+ const info = loadTsconfigAliasInfo(projectRoot);
520
+ return info.configFiles.map((cf) => cf.path);
521
+ }
522
+
523
+ export function getSanitizedEsbuildTsconfigRaw(projectRoot = process.cwd()) {
524
+ const info = loadTsconfigAliasInfo(projectRoot);
525
+ const sanitizedOptions = {};
526
+ const allowedKeys = [
527
+ "experimentalDecorators",
528
+ "emitDecoratorMetadata",
529
+ "useDefineForClassFields",
530
+ "verbatimModuleSyntax",
531
+ "importsNotUsedAsValues",
532
+ "preserveValueImports",
533
+ "jsxFactory",
534
+ "jsxFragmentFactory",
535
+ "jsxImportSource",
536
+ "target",
537
+ "strict",
538
+ ];
539
+ for (const key of allowedKeys) {
540
+ if (info.compilerOptions && info.compilerOptions[key] !== undefined) {
541
+ sanitizedOptions[key] = info.compilerOptions[key];
542
+ }
543
+ }
544
+ return { compilerOptions: sanitizedOptions };
545
+ }
546
+
547
+ export function resolveCandidateFile(
548
+ absCandidate,
549
+ { extensions = null, preferStyles = false } = {}
550
+ ) {
551
+ if (!absCandidate) return null;
552
+
553
+ // 1. Exact file match (covers explicit .tsx, .ts, .css, .module.css, .json, .svg, .webp, custom assets, etc.)
554
+ if (isExistingFile(absCandidate)) {
555
+ return absCandidate;
556
+ }
557
+
558
+ // 2. TypeScript ESM extension substitution (.js -> .ts / .tsx / .jsx, .mjs -> .mts, .cjs -> .cts)
559
+ const rawExt = path.extname(absCandidate).toLowerCase();
560
+ const substExts = EXTENSION_SUBSTITUTIONS[rawExt];
561
+ if (substExts) {
562
+ const stem = absCandidate.slice(0, -rawExt.length);
563
+ for (const altExt of substExts) {
564
+ const altPath = stem + altExt;
565
+ if (isExistingFile(altPath)) {
566
+ return altPath;
567
+ }
568
+ }
569
+ }
570
+
571
+ // 3. Extensionless probing
572
+ const activeExts =
573
+ extensions ||
574
+ (preferStyles ? DEFAULT_ALIAS_STYLE_EXTENSIONS : DEFAULT_ALIAS_CODE_EXTENSIONS);
575
+
576
+ for (const ext of activeExts) {
577
+ const candidate = absCandidate + ext;
578
+ if (isExistingFile(candidate)) {
579
+ return candidate;
580
+ }
581
+ }
582
+
583
+ // 4. Directory resolution (index.* or local package.json main/module/style)
584
+ if (isExistingDirectory(absCandidate)) {
585
+ const pkgJsonPath = path.join(absCandidate, "package.json");
586
+ if (isExistingFile(pkgJsonPath)) {
587
+ try {
588
+ const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, "utf8"));
589
+ const fields = preferStyles
590
+ ? ["style", "main"]
591
+ : ["module", "main"];
592
+ for (const field of fields) {
593
+ if (typeof pkg[field] === "string" && pkg[field].trim() !== "") {
594
+ const pkgEntry = resolveCandidateFile(
595
+ path.resolve(absCandidate, pkg[field]),
596
+ { extensions: activeExts, preferStyles }
597
+ );
598
+ if (pkgEntry) return pkgEntry;
599
+ }
600
+ }
601
+ } catch (e) {}
602
+ }
603
+
604
+ for (const ext of activeExts) {
605
+ const indexCandidate = path.join(absCandidate, "index" + ext);
606
+ if (isExistingFile(indexCandidate)) {
607
+ return indexCandidate;
608
+ }
609
+ }
610
+ }
611
+
612
+ return null;
613
+ }
614
+
615
+ function isDisallowedAliasSpecifier(cleanSpec) {
616
+ if (!cleanSpec || typeof cleanSpec !== "string") return true;
617
+ if (
618
+ cleanSpec.startsWith("./") ||
619
+ cleanSpec.startsWith("../") ||
620
+ cleanSpec.startsWith(".\\") ||
621
+ cleanSpec.startsWith("..\\") ||
622
+ cleanSpec.startsWith("/") ||
623
+ cleanSpec.startsWith("\\") ||
624
+ cleanSpec.startsWith("\0") ||
625
+ cleanSpec.startsWith("virtual:") ||
626
+ cleanSpec.startsWith("node:") ||
627
+ cleanSpec.startsWith("http:") ||
628
+ cleanSpec.startsWith("https:") ||
629
+ cleanSpec.startsWith("data:") ||
630
+ cleanSpec === "." ||
631
+ cleanSpec === ".." ||
632
+ cleanSpec === "dinou" ||
633
+ cleanSpec.startsWith("dinou/") ||
634
+ path.isAbsolute(cleanSpec)
635
+ ) {
636
+ return true;
637
+ }
638
+ return false;
639
+ }
640
+
641
+ function matchRuleToSpecifier(rule, cleanSpec) {
642
+ if (!rule.isWildcard) {
643
+ return cleanSpec === rule.pattern ? "" : null;
644
+ }
645
+ if (rule.isBaseUrlFallback) {
646
+ if (
647
+ NODE_BUILTINS.has(cleanSpec) ||
648
+ cleanSpec === "react" ||
649
+ cleanSpec.startsWith("react/") ||
650
+ cleanSpec === "react-dom" ||
651
+ cleanSpec.startsWith("react-dom/") ||
652
+ cleanSpec === "react-server-dom-webpack" ||
653
+ cleanSpec.startsWith("react-server-dom-webpack/") ||
654
+ cleanSpec === "@roggc/react-server-dom-esm" ||
655
+ cleanSpec.startsWith("@roggc/react-server-dom-esm/")
656
+ ) {
657
+ return null;
658
+ }
659
+ }
660
+ if (cleanSpec.length < rule.prefix.length + rule.suffix.length) {
661
+ return null;
662
+ }
663
+ if (!cleanSpec.startsWith(rule.prefix)) {
664
+ return null;
665
+ }
666
+ if (rule.suffix !== "" && !cleanSpec.endsWith(rule.suffix)) {
667
+ return null;
668
+ }
669
+ return cleanSpec.slice(
670
+ rule.prefix.length,
671
+ cleanSpec.length - rule.suffix.length
672
+ );
673
+ }
674
+
675
+ function expandRuleTargets(rule, matchedStar) {
676
+ const candidates = [];
677
+ for (const targetPattern of rule.targets) {
678
+ const substituted =
679
+ rule.isWildcard && targetPattern.includes("*")
680
+ ? targetPattern.replace(/\*/g, () => matchedStar)
681
+ : targetPattern;
682
+ candidates.push(path.resolve(rule.baseDir, substituted));
683
+ }
684
+ return candidates;
685
+ }
686
+
687
+ export function getAliasCandidatePaths(
688
+ specifier,
689
+ projectRoot = process.cwd(),
690
+ { includeBaseUrlFallback = false } = {}
691
+ ) {
692
+ if (!specifier || typeof specifier !== "string") return [];
693
+ const cleanSpec = specifier.split("?")[0].split("#")[0];
694
+ if (isDisallowedAliasSpecifier(cleanSpec)) return [];
695
+
696
+ const info = loadTsconfigAliasInfo(projectRoot);
697
+ const candidates = [];
698
+ for (const rule of info.rules) {
699
+ if (rule.isBaseUrlFallback && !includeBaseUrlFallback) continue;
700
+ const matchedStar = matchRuleToSpecifier(rule, cleanSpec);
701
+ if (matchedStar === null) continue;
702
+ for (const absCandidate of expandRuleTargets(rule, matchedStar)) {
703
+ candidates.push(absCandidate);
704
+ }
705
+ }
706
+ return candidates;
707
+ }
708
+
709
+ export function matchesExplicitUserAlias(
710
+ specifier,
711
+ projectRoot = process.cwd()
712
+ ) {
713
+ if (!specifier || typeof specifier !== "string") return false;
714
+ const cleanSpec = specifier.split("?")[0].split("#")[0];
715
+ if (isDisallowedAliasSpecifier(cleanSpec)) return false;
716
+
717
+ const info = loadTsconfigAliasInfo(projectRoot);
718
+ for (const rule of info.rules) {
719
+ if (rule.isBaseUrlFallback) continue;
720
+ // Avoid treating catch-all "*" user pattern as non-npm without disk check
721
+ if (rule.pattern === "*") continue;
722
+ if (matchRuleToSpecifier(rule, cleanSpec) !== null) {
723
+ return true;
724
+ }
725
+ }
726
+ return false;
727
+ }
728
+
729
+ export function resolveTsconfigAlias(
730
+ specifier,
731
+ {
732
+ projectRoot = process.cwd(),
733
+ extensions = null,
734
+ preferStyles = false,
735
+ } = {}
736
+ ) {
737
+ if (!specifier || typeof specifier !== "string") return null;
738
+ const cleanSpec = specifier.split("?")[0].split("#")[0];
739
+ if (isDisallowedAliasSpecifier(cleanSpec)) return null;
740
+
741
+ const info = loadTsconfigAliasInfo(projectRoot);
742
+ for (const rule of info.rules) {
743
+ const matchedStar = matchRuleToSpecifier(rule, cleanSpec);
744
+ if (matchedStar === null) continue;
745
+
746
+ const expandedCandidates = expandRuleTargets(rule, matchedStar);
747
+ for (const absCandidate of expandedCandidates) {
748
+ const resolved = resolveCandidateFile(absCandidate, {
749
+ extensions,
750
+ preferStyles,
751
+ });
752
+ if (resolved) {
753
+ return resolved;
754
+ }
755
+ }
756
+ }
757
+
758
+ return null;
759
+ }
760
+
761
+ function mapResolvedToSwcMirrorIfPresent(resolvedPath, rootAbs) {
762
+ if (!resolvedPath || !/\.[jt]sx?$/i.test(resolvedPath)) {
763
+ return resolvedPath;
764
+ }
765
+ const normResolved = normalizeCacheRootKey(resolvedPath);
766
+ const normRoot = normalizeCacheRootKey(rootAbs);
767
+ if (!normResolved.startsWith(normRoot + "/")) {
768
+ return resolvedPath;
769
+ }
770
+ const rel = path.relative(rootAbs, resolvedPath).replace(/\\/g, "/");
771
+ if (rel.startsWith(".dinou/") || rel.startsWith("node_modules/")) {
772
+ return resolvedPath;
773
+ }
774
+ const mirrorRel = rel.replace(/\.[jt]sx?$/i, ".js");
775
+ const mirrorAbs = path.resolve(rootAbs, ".dinou", "swc", mirrorRel);
776
+ if (isExistingFile(mirrorAbs)) {
777
+ return mirrorAbs;
778
+ }
779
+ return resolvedPath;
780
+ }
781
+
782
+ export function esbuildTsconfigAliasesPlugin({
783
+ projectRoot = process.cwd(),
784
+ assetRegex = null,
785
+ getAssetRegex = null,
786
+ preferSwcMirror = false,
787
+ skipAssets = true,
788
+ } = {}) {
789
+ const rootDir = path.resolve(projectRoot || process.cwd());
790
+
791
+ return {
792
+ name: "dinou-tsconfig-aliases",
793
+ setup(build) {
794
+ let activeAssetRegex = assetRegex || DEFAULT_ASSET_REGEX;
795
+ build.onStart(() => {
796
+ if (typeof getAssetRegex === "function") {
797
+ try {
798
+ activeAssetRegex = getAssetRegex() || DEFAULT_ASSET_REGEX;
799
+ } catch (e) {
800
+ activeAssetRegex = assetRegex || DEFAULT_ASSET_REGEX;
801
+ }
802
+ }
803
+ });
804
+
805
+ build.onResolve({ filter: /^[^.\/\\]/ }, (args) => {
806
+ if (args.kind === "entry-point") return null;
807
+ if (args.pluginData?.skipDinouTsconfigAliases) return null;
808
+
809
+ const cleanSpec = args.path ? args.path.split("?")[0].split("#")[0] : "";
810
+ if (isDisallowedAliasSpecifier(cleanSpec)) return null;
811
+
812
+ if (skipAssets && activeAssetRegex && activeAssetRegex.test(cleanSpec)) {
813
+ return null;
814
+ }
815
+
816
+ const resolved = resolveTsconfigAlias(cleanSpec, {
817
+ projectRoot: rootDir,
818
+ });
819
+ if (!resolved) {
820
+ return null;
821
+ }
822
+
823
+ if (skipAssets && activeAssetRegex && activeAssetRegex.test(resolved)) {
824
+ return null;
825
+ }
826
+
827
+ const finalPath = preferSwcMirror
828
+ ? mapResolvedToSwcMirrorIfPresent(resolved, rootDir)
829
+ : resolved;
830
+
831
+ const isDev =
832
+ process.env.DINOU_DEV === "true" ||
833
+ process.env.NODE_ENV !== "production";
834
+ if (isDev) {
835
+ const watchFiles = getWatchedTsconfigFiles(rootDir);
836
+ if (watchFiles.length > 0) {
837
+ return { path: finalPath, watchFiles };
838
+ }
839
+ }
840
+
841
+ return { path: finalPath };
842
+ });
843
+ },
844
+ };
845
+ }
846
+
847
+ export function rollupTsconfigAliasesPlugin({
848
+ projectRoot = process.cwd(),
849
+ assetRegex = null,
850
+ skipAssets = true,
851
+ } = {}) {
852
+ const rootDir = path.resolve(projectRoot || process.cwd());
853
+ const activeAssetRegex = assetRegex || DEFAULT_ASSET_REGEX;
854
+
855
+ return {
856
+ name: "dinou-tsconfig-aliases",
857
+ resolveId(source, _importer, options) {
858
+ if (options?.isEntry) return null;
859
+ if (!source || typeof source !== "string") return null;
860
+
861
+ const cleanSpec = source.split("?")[0].split("#")[0];
862
+ if (isDisallowedAliasSpecifier(cleanSpec)) return null;
863
+
864
+ if (skipAssets && activeAssetRegex && activeAssetRegex.test(cleanSpec)) {
865
+ return null;
866
+ }
867
+
868
+ if (typeof this?.addWatchFile === "function") {
869
+ for (const cf of getWatchedTsconfigFiles(rootDir)) {
870
+ this.addWatchFile(cf);
871
+ }
872
+ }
873
+
874
+ const resolved = resolveTsconfigAlias(cleanSpec, {
875
+ projectRoot: rootDir,
876
+ });
877
+ if (!resolved) return null;
878
+
879
+ if (skipAssets && activeAssetRegex && activeAssetRegex.test(resolved)) {
880
+ return null;
881
+ }
882
+
883
+ return resolved;
884
+ },
885
+ };
886
+ }
887
+
888
+ export function createWebpackTsconfigAliasesResolvePlugin({
889
+ projectRoot = process.cwd(),
890
+ } = {}) {
891
+ const rootDir = path.resolve(projectRoot || process.cwd());
892
+
893
+ return {
894
+ apply(resolver) {
895
+ if (!resolver || typeof resolver.ensureHook !== "function") return;
896
+ const target = resolver.ensureHook("resolve");
897
+ resolver
898
+ .getHook("described-resolve")
899
+ .tapAsync(
900
+ "DinouTsconfigAliasesResolvePlugin",
901
+ (request, resolveContext, callback) => {
902
+ const rawReq = request?.request;
903
+ if (!rawReq || typeof rawReq !== "string") {
904
+ return callback();
905
+ }
906
+ const cleanSpec = rawReq.split("?")[0].split("#")[0];
907
+ if (isDisallowedAliasSpecifier(cleanSpec)) {
908
+ return callback();
909
+ }
910
+
911
+ const info = loadTsconfigAliasInfo(rootDir);
912
+ if (
913
+ resolveContext?.fileDependencies &&
914
+ typeof resolveContext.fileDependencies.add === "function"
915
+ ) {
916
+ for (const cf of info.configFiles) {
917
+ resolveContext.fileDependencies.add(cf.path);
918
+ }
919
+ }
920
+
921
+ const resolved = resolveTsconfigAlias(cleanSpec, {
922
+ projectRoot: rootDir,
923
+ });
924
+ if (!resolved) {
925
+ return callback();
926
+ }
927
+
928
+ const qIdx = rawReq.search(/[?#]/);
929
+ const suffix = qIdx === -1 ? "" : rawReq.slice(qIdx);
930
+ const nextRequest = {
931
+ ...request,
932
+ request: resolved + suffix,
933
+ };
934
+
935
+ return resolver.doResolve(
936
+ target,
937
+ nextRequest,
938
+ `resolved tsconfig alias ${rawReq} -> ${resolved}`,
939
+ resolveContext,
940
+ callback
941
+ );
942
+ }
943
+ );
944
+ },
945
+ };
946
+ }
947
+
948
+ export default {
949
+ DEFAULT_ALIAS_CODE_EXTENSIONS,
950
+ DEFAULT_ALIAS_STYLE_EXTENSIONS,
951
+ stripJsonCommentsAndTrailingCommas,
952
+ clearTsconfigAliasCache,
953
+ inferProjectRootFromDir,
954
+ loadTsconfigAliasInfo,
955
+ getWatchedTsconfigFiles,
956
+ getSanitizedEsbuildTsconfigRaw,
957
+ resolveCandidateFile,
958
+ getAliasCandidatePaths,
959
+ matchesExplicitUserAlias,
960
+ resolveTsconfigAlias,
961
+ esbuildTsconfigAliasesPlugin,
962
+ rollupTsconfigAliasesPlugin,
963
+ createWebpackTsconfigAliasesResolvePlugin,
964
+ };