@svelte-vitals/vite 0.29.2 → 0.29.3
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.js +5 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -205,14 +205,16 @@ async function resolveConfig(cwd, options) {
|
|
|
205
205
|
}
|
|
206
206
|
async function analyze(prerenderPagesDir, cwd, options, extraProjectFacts, resolved) {
|
|
207
207
|
const { config, warnings } = resolved ?? await resolveConfig(cwd, options);
|
|
208
|
-
const { heads, headings, images, htmlLang } = await
|
|
208
|
+
const [{ heads, headings, images, htmlLang }, components, sourceFiles] = await Promise.all([
|
|
209
|
+
collectRenderedHeads(prerenderPagesDir),
|
|
210
|
+
collectComponentFacts(cwd),
|
|
211
|
+
collectSourceFiles(cwd)
|
|
212
|
+
]);
|
|
209
213
|
const project = {
|
|
210
214
|
...await collectRenderedProject(cwd, htmlLang),
|
|
211
215
|
...extraProjectFacts
|
|
212
216
|
};
|
|
213
|
-
const components = await collectComponentFacts(cwd);
|
|
214
217
|
const kitModules = await collectKitModuleFacts(cwd, project.kitAliases);
|
|
215
|
-
const sourceFiles = await collectSourceFiles(cwd);
|
|
216
218
|
const selected = selectRules(allRules, config);
|
|
217
219
|
const { results: rawResults, examined } = await runRules(selected, {
|
|
218
220
|
heads,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@svelte-vitals/vite",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"description": "Vite/SvelteKit plugin for svelte-vitals — analyzes prerendered HTML during vite build, plus a live dev dashboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"esm-env": "^1.2.2",
|
|
43
43
|
"node-html-parser": "^9.0.1",
|
|
44
44
|
"tinyglobby": "^0.2.17",
|
|
45
|
-
"svelte-vitals": "0.
|
|
46
|
-
"
|
|
45
|
+
"@svelte-vitals/core": "0.40.1",
|
|
46
|
+
"svelte-vitals": "0.44.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@sveltejs/kit": "^2.70.2",
|