@svelte-vitals/vite 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +6 -4
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  Vite/SvelteKit plugin for [svelte-vitals](https://github.com/oekazuma/svelte-vitals). It piggybacks on `vite build`, parses the **prerendered HTML's `<head>`**, and runs the same SEO rules as the CLI — library-agnostic, because it inspects the real output. Fails the build when findings reach `failOn`.
6
6
 
7
+ > **ESM-only** (Node 18+). Ships ES modules only; `require()` is unsupported by design.
8
+
7
9
  ## Usage
8
10
 
9
11
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svelte-vitals/vite",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Vite/SvelteKit plugin for svelte-vitals — analyzes prerendered HTML during vite build.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,6 +21,10 @@
21
21
  "url": "https://github.com/oekazuma/svelte-vitals/issues"
22
22
  },
23
23
  "homepage": "https://github.com/oekazuma/svelte-vitals#readme",
24
+ "engines": {
25
+ "node": ">=18"
26
+ },
27
+ "sideEffects": false,
24
28
  "exports": {
25
29
  ".": {
26
30
  "types": "./dist/index.d.ts",
@@ -31,8 +35,6 @@
31
35
  "import": "./dist/hooks/index.js"
32
36
  }
33
37
  },
34
- "main": "./dist/index.js",
35
- "types": "./dist/index.d.ts",
36
38
  "files": [
37
39
  "dist"
38
40
  ],
@@ -40,7 +42,7 @@
40
42
  "esm-env": "^1.2.2",
41
43
  "node-html-parser": "^6.1.13",
42
44
  "tinyglobby": "^0.2.17",
43
- "@svelte-vitals/core": "0.6.0"
45
+ "@svelte-vitals/core": "0.7.0"
44
46
  },
45
47
  "peerDependencies": {
46
48
  "@sveltejs/kit": "^2.0.0",