|
1 | 1 | /* eslint-disable no-console */
|
2 |
| -import type { Rollup, Plugin, ViteDevServer, HmrContext } from 'vite'; |
| 2 | +import type { LoadResult, OutputBundle, ResolveIdResult, TransformResult } from 'rollup'; |
| 3 | +import type { HmrContext, Plugin, Rollup, ViteDevServer } from 'vite'; |
| 4 | +import type { BundleGraphAdder } from '..'; |
3 | 5 | import { hashCode } from '../../../core/util/hash_code';
|
4 | 6 | import { generateManifestFromBundles, getValidManifest } from '../manifest';
|
5 | 7 | import { createOptimizer } from '../optimizer';
|
6 | 8 | import type {
|
7 | 9 | Diagnostic,
|
8 | 10 | EntryStrategy,
|
9 | 11 | GlobalInjections,
|
10 |
| - SegmentAnalysis, |
11 | 12 | Optimizer,
|
12 | 13 | OptimizerOptions,
|
13 | 14 | OptimizerSystem,
|
14 | 15 | QwikManifest,
|
| 16 | + SegmentAnalysis, |
| 17 | + ServerQwikManifest, |
| 18 | + SmartEntryStrategy, |
15 | 19 | TransformModule,
|
16 | 20 | TransformModuleInput,
|
17 | 21 | TransformModulesOptions,
|
18 | 22 | TransformOutput,
|
19 |
| - SmartEntryStrategy, |
20 |
| - ServerQwikManifest, |
21 | 23 | } from '../types';
|
| 24 | +import { versions } from '../versions'; |
| 25 | +import { convertManifestToBundleGraph } from './bundle-graph'; |
22 | 26 | import { createLinter, type QwikLinter } from './eslint-plugin';
|
23 |
| -import type { LoadResult, OutputBundle, ResolveIdResult, TransformResult } from 'rollup'; |
24 | 27 | import { isWin, parseId } from './vite-utils';
|
25 |
| -import type { BundleGraphAdder } from '..'; |
26 |
| -import { convertManifestToBundleGraph } from './bundle-graph'; |
27 | 28 |
|
28 | 29 | const REG_CTX_NAME = ['server'];
|
29 | 30 |
|
@@ -939,6 +940,7 @@ export const manifest = ${JSON.stringify(serverManifest)};\n`;
|
939 | 940 |
|
940 | 941 | manifest.platform = {
|
941 | 942 | ...manifestExtra?.platform,
|
| 943 | + qwik: versions.qwik, |
942 | 944 | rollup: ctx.meta?.rollupVersion || '',
|
943 | 945 | env: optimizer.sys.env,
|
944 | 946 | os: optimizer.sys.os,
|
|
0 commit comments