deslop-js 0.0.14-dev.bd94e5e → 0.0.15-dev.44dfc04
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 +104 -7
- package/dist/index.mjs +104 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3694,7 +3694,7 @@ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
|
|
|
3694
3694
|
const collectSourceFiles = async (config) => {
|
|
3695
3695
|
const extensions = config.includeExtensions.length > 0 ? config.includeExtensions : DEFAULT_EXTENSIONS;
|
|
3696
3696
|
const extensionGlob = extensions.length === 1 ? `**/*${extensions[0]}` : `**/*{${extensions.join(",")}}`;
|
|
3697
|
-
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns];
|
|
3697
|
+
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns].map(toPosixPath);
|
|
3698
3698
|
const absoluteRoot = (0, node_path.resolve)(config.rootDir);
|
|
3699
3699
|
const mainFiles = await (0, fast_glob.default)(extensionGlob, {
|
|
3700
3700
|
cwd: absoluteRoot,
|
|
@@ -3711,7 +3711,7 @@ const collectSourceFiles = async (config) => {
|
|
|
3711
3711
|
dot: true,
|
|
3712
3712
|
onlyFiles: true
|
|
3713
3713
|
}) : [];
|
|
3714
|
-
return [...mainFiles, ...hiddenFiles].sort().map((filePath, fileIndex) => ({
|
|
3714
|
+
return [...new Set([...mainFiles, ...hiddenFiles].map(toPosixPath))].sort().map((filePath, fileIndex) => ({
|
|
3715
3715
|
index: fileIndex,
|
|
3716
3716
|
path: filePath
|
|
3717
3717
|
}));
|
|
@@ -5139,6 +5139,9 @@ const TEST_FRAMEWORK_PATTERNS = [
|
|
|
5139
5139
|
alwaysUsed: ["cypress.config.{ts,js}", "cypress.config.*.{ts,js}"]
|
|
5140
5140
|
}
|
|
5141
5141
|
];
|
|
5142
|
+
const JS_TS_COMPONENT_EXTENSIONS = "{ts,tsx,js,jsx}";
|
|
5143
|
+
const INERTIA_COMPONENT_EXTENSIONS = "{ts,tsx,js,jsx,vue,svelte}";
|
|
5144
|
+
const VIKE_ROUTE_EXTENSIONS = "{ts,tsx,js,jsx,md,mdx}";
|
|
5142
5145
|
const FRAMEWORK_PATTERNS = [
|
|
5143
5146
|
{
|
|
5144
5147
|
enablers: ["storybook"],
|
|
@@ -5258,6 +5261,50 @@ const FRAMEWORK_PATTERNS = [
|
|
|
5258
5261
|
],
|
|
5259
5262
|
alwaysUsed: ["angular.json", "**/karma.conf.js"]
|
|
5260
5263
|
},
|
|
5264
|
+
{
|
|
5265
|
+
enablers: [
|
|
5266
|
+
"@inertiajs/react",
|
|
5267
|
+
"@inertiajs/inertia-react",
|
|
5268
|
+
"@inertiajs/vue3",
|
|
5269
|
+
"@inertiajs/inertia-vue3",
|
|
5270
|
+
"@inertiajs/svelte",
|
|
5271
|
+
"@inertiajs/inertia-svelte",
|
|
5272
|
+
"@inertiajs/inertia"
|
|
5273
|
+
],
|
|
5274
|
+
enablerPrefixes: [],
|
|
5275
|
+
entryPatterns: [
|
|
5276
|
+
`resources/js/app.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5277
|
+
`resources/js/App.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5278
|
+
`resources/js/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5279
|
+
`resources/js/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5280
|
+
`app/frontend/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5281
|
+
`app/frontend/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5282
|
+
`app/frontend/entrypoints/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5283
|
+
`app/javascript/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5284
|
+
`app/javascript/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5285
|
+
`frontend/src/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5286
|
+
`frontend/src/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5287
|
+
`inertia/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5288
|
+
`inertia/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5289
|
+
`src/app.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5290
|
+
`src/App.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5291
|
+
`src/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5292
|
+
`src/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`
|
|
5293
|
+
],
|
|
5294
|
+
alwaysUsed: []
|
|
5295
|
+
},
|
|
5296
|
+
{
|
|
5297
|
+
enablers: ["@redwoodjs/router", "@redwoodjs/web"],
|
|
5298
|
+
enablerPrefixes: [],
|
|
5299
|
+
entryPatterns: [
|
|
5300
|
+
`web/src/App.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5301
|
+
`web/src/Routes.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5302
|
+
`web/src/index.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5303
|
+
`web/src/layouts/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5304
|
+
`web/src/pages/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5305
|
+
],
|
|
5306
|
+
alwaysUsed: []
|
|
5307
|
+
},
|
|
5261
5308
|
{
|
|
5262
5309
|
enablers: ["react-scripts", "react-app-rewired"],
|
|
5263
5310
|
enablerPrefixes: [],
|
|
@@ -5503,6 +5550,48 @@ const FRAMEWORK_PATTERNS = [
|
|
|
5503
5550
|
],
|
|
5504
5551
|
alwaysUsed: ["tsr.config.json", "app.config.{ts,js}"]
|
|
5505
5552
|
},
|
|
5553
|
+
{
|
|
5554
|
+
enablers: ["waku"],
|
|
5555
|
+
enablerPrefixes: [],
|
|
5556
|
+
entryPatterns: [
|
|
5557
|
+
`src/pages/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5558
|
+
`src/waku.client.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5559
|
+
`src/waku.server.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5560
|
+
],
|
|
5561
|
+
alwaysUsed: []
|
|
5562
|
+
},
|
|
5563
|
+
{
|
|
5564
|
+
enablers: ["vike", "vite-plugin-ssr"],
|
|
5565
|
+
enablerPrefixes: [],
|
|
5566
|
+
entryPatterns: [
|
|
5567
|
+
`pages/**/*.${VIKE_ROUTE_EXTENSIONS}`,
|
|
5568
|
+
`renderer/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5569
|
+
`src/pages/**/*.${VIKE_ROUTE_EXTENSIONS}`,
|
|
5570
|
+
`src/renderer/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5571
|
+
],
|
|
5572
|
+
alwaysUsed: []
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
enablers: ["rakkasjs"],
|
|
5576
|
+
enablerPrefixes: [],
|
|
5577
|
+
entryPatterns: [
|
|
5578
|
+
`src/client.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5579
|
+
`src/server.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5580
|
+
`src/routes/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5581
|
+
],
|
|
5582
|
+
alwaysUsed: []
|
|
5583
|
+
},
|
|
5584
|
+
{
|
|
5585
|
+
enablers: [
|
|
5586
|
+
"@module-federation/enhanced",
|
|
5587
|
+
"@module-federation/node",
|
|
5588
|
+
"@module-federation/vite",
|
|
5589
|
+
"@originjs/vite-plugin-federation"
|
|
5590
|
+
],
|
|
5591
|
+
enablerPrefixes: [],
|
|
5592
|
+
entryPatterns: ["federation.config.{ts,js,mjs,cjs,mts,cts}", "module-federation.config.{ts,js,mjs,cjs,mts,cts}"],
|
|
5593
|
+
alwaysUsed: []
|
|
5594
|
+
},
|
|
5506
5595
|
{
|
|
5507
5596
|
enablers: [
|
|
5508
5597
|
"vite",
|
|
@@ -5933,7 +6022,8 @@ const FRAMEWORK_SCRIPT_BINARIES = {
|
|
|
5933
6022
|
nuxt: ["nuxt"],
|
|
5934
6023
|
astro: ["astro"],
|
|
5935
6024
|
gatsby: ["gatsby"],
|
|
5936
|
-
remix: ["remix"],
|
|
6025
|
+
"@remix-run/dev": ["remix"],
|
|
6026
|
+
"@react-router/dev": ["react-router"],
|
|
5937
6027
|
"@sveltejs/kit": ["svelte-kit", "vite-svelte-kit"],
|
|
5938
6028
|
"@docusaurus/core": ["docusaurus"],
|
|
5939
6029
|
"@angular/core": ["ng"],
|
|
@@ -6002,7 +6092,7 @@ const discoverToolingEntryPoints = (rootDir, workspacePackages) => {
|
|
|
6002
6092
|
const scriptDetectedEnablers = detectFrameworkFromScripts(readPackageScripts(directory));
|
|
6003
6093
|
const mergedDependencies = { ...workspaceDependencies };
|
|
6004
6094
|
if (directory === rootDir) Object.assign(mergedDependencies, rootDependencies);
|
|
6005
|
-
|
|
6095
|
+
for (const enabler of scriptDetectedEnablers) if (enabler in workspaceDependencies || enabler in rootDependencies || enabler in monorepoRootDeps) mergedDependencies[enabler] = "*";
|
|
6006
6096
|
const activatedPatterns = [];
|
|
6007
6097
|
const activatedAlwaysUsed = [];
|
|
6008
6098
|
for (const plugin of FRAMEWORK_PATTERNS) if (isToolingPluginEnabled(plugin, mergedDependencies)) {
|
|
@@ -6911,9 +7001,16 @@ const isConfigFile = (filePath) => {
|
|
|
6911
7001
|
//#endregion
|
|
6912
7002
|
//#region src/linker/build.ts
|
|
6913
7003
|
const buildDependencyGraph = (inputs) => {
|
|
7004
|
+
const normalizedInputs = inputs.map((input) => ({
|
|
7005
|
+
...input,
|
|
7006
|
+
fileId: {
|
|
7007
|
+
...input.fileId,
|
|
7008
|
+
path: toPosixPath(input.fileId.path)
|
|
7009
|
+
}
|
|
7010
|
+
}));
|
|
6914
7011
|
const fileIdMap = /* @__PURE__ */ new Map();
|
|
6915
|
-
for (const input of
|
|
6916
|
-
const modules =
|
|
7012
|
+
for (const input of normalizedInputs) fileIdMap.set(input.fileId.path, input.fileId.index);
|
|
7013
|
+
const modules = normalizedInputs.map((input) => ({
|
|
6917
7014
|
fileId: input.fileId,
|
|
6918
7015
|
imports: input.parsed.imports,
|
|
6919
7016
|
exports: input.parsed.exports,
|
|
@@ -6951,7 +7048,7 @@ const buildDependencyGraph = (inputs) => {
|
|
|
6951
7048
|
if (!existingReverseEdges.includes(sourceIndex)) existingReverseEdges.push(sourceIndex);
|
|
6952
7049
|
} else reverseEdges.set(targetIndex, [sourceIndex]);
|
|
6953
7050
|
};
|
|
6954
|
-
for (const input of
|
|
7051
|
+
for (const input of normalizedInputs) {
|
|
6955
7052
|
const sourceIndex = input.fileId.index;
|
|
6956
7053
|
for (const importInfo of input.parsed.imports) {
|
|
6957
7054
|
if (importInfo.isGlob) {
|
package/dist/index.mjs
CHANGED
|
@@ -3663,7 +3663,7 @@ const toPosixPath = (filePath) => filePath.replace(/\\/g, "/");
|
|
|
3663
3663
|
const collectSourceFiles = async (config) => {
|
|
3664
3664
|
const extensions = config.includeExtensions.length > 0 ? config.includeExtensions : DEFAULT_EXTENSIONS;
|
|
3665
3665
|
const extensionGlob = extensions.length === 1 ? `**/*${extensions[0]}` : `**/*{${extensions.join(",")}}`;
|
|
3666
|
-
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns];
|
|
3666
|
+
const ignorePatterns = [...DEFAULT_EXCLUSIONS, ...config.ignorePatterns].map(toPosixPath);
|
|
3667
3667
|
const absoluteRoot = resolve(config.rootDir);
|
|
3668
3668
|
const mainFiles = await fg(extensionGlob, {
|
|
3669
3669
|
cwd: absoluteRoot,
|
|
@@ -3680,7 +3680,7 @@ const collectSourceFiles = async (config) => {
|
|
|
3680
3680
|
dot: true,
|
|
3681
3681
|
onlyFiles: true
|
|
3682
3682
|
}) : [];
|
|
3683
|
-
return [...mainFiles, ...hiddenFiles].sort().map((filePath, fileIndex) => ({
|
|
3683
|
+
return [...new Set([...mainFiles, ...hiddenFiles].map(toPosixPath))].sort().map((filePath, fileIndex) => ({
|
|
3684
3684
|
index: fileIndex,
|
|
3685
3685
|
path: filePath
|
|
3686
3686
|
}));
|
|
@@ -5108,6 +5108,9 @@ const TEST_FRAMEWORK_PATTERNS = [
|
|
|
5108
5108
|
alwaysUsed: ["cypress.config.{ts,js}", "cypress.config.*.{ts,js}"]
|
|
5109
5109
|
}
|
|
5110
5110
|
];
|
|
5111
|
+
const JS_TS_COMPONENT_EXTENSIONS = "{ts,tsx,js,jsx}";
|
|
5112
|
+
const INERTIA_COMPONENT_EXTENSIONS = "{ts,tsx,js,jsx,vue,svelte}";
|
|
5113
|
+
const VIKE_ROUTE_EXTENSIONS = "{ts,tsx,js,jsx,md,mdx}";
|
|
5111
5114
|
const FRAMEWORK_PATTERNS = [
|
|
5112
5115
|
{
|
|
5113
5116
|
enablers: ["storybook"],
|
|
@@ -5227,6 +5230,50 @@ const FRAMEWORK_PATTERNS = [
|
|
|
5227
5230
|
],
|
|
5228
5231
|
alwaysUsed: ["angular.json", "**/karma.conf.js"]
|
|
5229
5232
|
},
|
|
5233
|
+
{
|
|
5234
|
+
enablers: [
|
|
5235
|
+
"@inertiajs/react",
|
|
5236
|
+
"@inertiajs/inertia-react",
|
|
5237
|
+
"@inertiajs/vue3",
|
|
5238
|
+
"@inertiajs/inertia-vue3",
|
|
5239
|
+
"@inertiajs/svelte",
|
|
5240
|
+
"@inertiajs/inertia-svelte",
|
|
5241
|
+
"@inertiajs/inertia"
|
|
5242
|
+
],
|
|
5243
|
+
enablerPrefixes: [],
|
|
5244
|
+
entryPatterns: [
|
|
5245
|
+
`resources/js/app.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5246
|
+
`resources/js/App.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5247
|
+
`resources/js/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5248
|
+
`resources/js/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5249
|
+
`app/frontend/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5250
|
+
`app/frontend/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5251
|
+
`app/frontend/entrypoints/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5252
|
+
`app/javascript/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5253
|
+
`app/javascript/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5254
|
+
`frontend/src/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5255
|
+
`frontend/src/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5256
|
+
`inertia/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5257
|
+
`inertia/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5258
|
+
`src/app.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5259
|
+
`src/App.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5260
|
+
`src/Pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`,
|
|
5261
|
+
`src/pages/**/*.${INERTIA_COMPONENT_EXTENSIONS}`
|
|
5262
|
+
],
|
|
5263
|
+
alwaysUsed: []
|
|
5264
|
+
},
|
|
5265
|
+
{
|
|
5266
|
+
enablers: ["@redwoodjs/router", "@redwoodjs/web"],
|
|
5267
|
+
enablerPrefixes: [],
|
|
5268
|
+
entryPatterns: [
|
|
5269
|
+
`web/src/App.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5270
|
+
`web/src/Routes.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5271
|
+
`web/src/index.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5272
|
+
`web/src/layouts/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5273
|
+
`web/src/pages/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5274
|
+
],
|
|
5275
|
+
alwaysUsed: []
|
|
5276
|
+
},
|
|
5230
5277
|
{
|
|
5231
5278
|
enablers: ["react-scripts", "react-app-rewired"],
|
|
5232
5279
|
enablerPrefixes: [],
|
|
@@ -5472,6 +5519,48 @@ const FRAMEWORK_PATTERNS = [
|
|
|
5472
5519
|
],
|
|
5473
5520
|
alwaysUsed: ["tsr.config.json", "app.config.{ts,js}"]
|
|
5474
5521
|
},
|
|
5522
|
+
{
|
|
5523
|
+
enablers: ["waku"],
|
|
5524
|
+
enablerPrefixes: [],
|
|
5525
|
+
entryPatterns: [
|
|
5526
|
+
`src/pages/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5527
|
+
`src/waku.client.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5528
|
+
`src/waku.server.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5529
|
+
],
|
|
5530
|
+
alwaysUsed: []
|
|
5531
|
+
},
|
|
5532
|
+
{
|
|
5533
|
+
enablers: ["vike", "vite-plugin-ssr"],
|
|
5534
|
+
enablerPrefixes: [],
|
|
5535
|
+
entryPatterns: [
|
|
5536
|
+
`pages/**/*.${VIKE_ROUTE_EXTENSIONS}`,
|
|
5537
|
+
`renderer/**/*.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5538
|
+
`src/pages/**/*.${VIKE_ROUTE_EXTENSIONS}`,
|
|
5539
|
+
`src/renderer/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5540
|
+
],
|
|
5541
|
+
alwaysUsed: []
|
|
5542
|
+
},
|
|
5543
|
+
{
|
|
5544
|
+
enablers: ["rakkasjs"],
|
|
5545
|
+
enablerPrefixes: [],
|
|
5546
|
+
entryPatterns: [
|
|
5547
|
+
`src/client.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5548
|
+
`src/server.${JS_TS_COMPONENT_EXTENSIONS}`,
|
|
5549
|
+
`src/routes/**/*.${JS_TS_COMPONENT_EXTENSIONS}`
|
|
5550
|
+
],
|
|
5551
|
+
alwaysUsed: []
|
|
5552
|
+
},
|
|
5553
|
+
{
|
|
5554
|
+
enablers: [
|
|
5555
|
+
"@module-federation/enhanced",
|
|
5556
|
+
"@module-federation/node",
|
|
5557
|
+
"@module-federation/vite",
|
|
5558
|
+
"@originjs/vite-plugin-federation"
|
|
5559
|
+
],
|
|
5560
|
+
enablerPrefixes: [],
|
|
5561
|
+
entryPatterns: ["federation.config.{ts,js,mjs,cjs,mts,cts}", "module-federation.config.{ts,js,mjs,cjs,mts,cts}"],
|
|
5562
|
+
alwaysUsed: []
|
|
5563
|
+
},
|
|
5475
5564
|
{
|
|
5476
5565
|
enablers: [
|
|
5477
5566
|
"vite",
|
|
@@ -5902,7 +5991,8 @@ const FRAMEWORK_SCRIPT_BINARIES = {
|
|
|
5902
5991
|
nuxt: ["nuxt"],
|
|
5903
5992
|
astro: ["astro"],
|
|
5904
5993
|
gatsby: ["gatsby"],
|
|
5905
|
-
remix: ["remix"],
|
|
5994
|
+
"@remix-run/dev": ["remix"],
|
|
5995
|
+
"@react-router/dev": ["react-router"],
|
|
5906
5996
|
"@sveltejs/kit": ["svelte-kit", "vite-svelte-kit"],
|
|
5907
5997
|
"@docusaurus/core": ["docusaurus"],
|
|
5908
5998
|
"@angular/core": ["ng"],
|
|
@@ -5971,7 +6061,7 @@ const discoverToolingEntryPoints = (rootDir, workspacePackages) => {
|
|
|
5971
6061
|
const scriptDetectedEnablers = detectFrameworkFromScripts(readPackageScripts(directory));
|
|
5972
6062
|
const mergedDependencies = { ...workspaceDependencies };
|
|
5973
6063
|
if (directory === rootDir) Object.assign(mergedDependencies, rootDependencies);
|
|
5974
|
-
|
|
6064
|
+
for (const enabler of scriptDetectedEnablers) if (enabler in workspaceDependencies || enabler in rootDependencies || enabler in monorepoRootDeps) mergedDependencies[enabler] = "*";
|
|
5975
6065
|
const activatedPatterns = [];
|
|
5976
6066
|
const activatedAlwaysUsed = [];
|
|
5977
6067
|
for (const plugin of FRAMEWORK_PATTERNS) if (isToolingPluginEnabled(plugin, mergedDependencies)) {
|
|
@@ -6880,9 +6970,16 @@ const isConfigFile = (filePath) => {
|
|
|
6880
6970
|
//#endregion
|
|
6881
6971
|
//#region src/linker/build.ts
|
|
6882
6972
|
const buildDependencyGraph = (inputs) => {
|
|
6973
|
+
const normalizedInputs = inputs.map((input) => ({
|
|
6974
|
+
...input,
|
|
6975
|
+
fileId: {
|
|
6976
|
+
...input.fileId,
|
|
6977
|
+
path: toPosixPath(input.fileId.path)
|
|
6978
|
+
}
|
|
6979
|
+
}));
|
|
6883
6980
|
const fileIdMap = /* @__PURE__ */ new Map();
|
|
6884
|
-
for (const input of
|
|
6885
|
-
const modules =
|
|
6981
|
+
for (const input of normalizedInputs) fileIdMap.set(input.fileId.path, input.fileId.index);
|
|
6982
|
+
const modules = normalizedInputs.map((input) => ({
|
|
6886
6983
|
fileId: input.fileId,
|
|
6887
6984
|
imports: input.parsed.imports,
|
|
6888
6985
|
exports: input.parsed.exports,
|
|
@@ -6920,7 +7017,7 @@ const buildDependencyGraph = (inputs) => {
|
|
|
6920
7017
|
if (!existingReverseEdges.includes(sourceIndex)) existingReverseEdges.push(sourceIndex);
|
|
6921
7018
|
} else reverseEdges.set(targetIndex, [sourceIndex]);
|
|
6922
7019
|
};
|
|
6923
|
-
for (const input of
|
|
7020
|
+
for (const input of normalizedInputs) {
|
|
6924
7021
|
const sourceIndex = input.fileId.index;
|
|
6925
7022
|
for (const importInfo of input.parsed.imports) {
|
|
6926
7023
|
if (importInfo.isGlob) {
|