@reticlehq/vite-plugin 2.7.0 → 2.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/vite-plugin",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "Vite plugin for Reticle: dev-only source-map stamping plus auto-injected reticle.connect(). apply:'serve' guarantees it never ships to production.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -23,8 +23,14 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
- "types": "./dist/index.d.ts",
27
- "default": "./dist/index.js"
26
+ "import": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.d.cts",
32
+ "default": "./dist/index.cjs"
33
+ }
28
34
  },
29
35
  "./package.json": "./package.json"
30
36
  },
@@ -35,13 +41,14 @@
35
41
  ],
36
42
  "dependencies": {
37
43
  "@babel/core": "^7.26.0",
38
- "@reticlehq/babel-plugin": "2.7.0",
39
- "@reticlehq/core": "2.7.0"
44
+ "@reticlehq/babel-plugin": "2.9.0",
45
+ "@reticlehq/core": "2.9.0"
40
46
  },
41
47
  "devDependencies": {
42
48
  "@types/babel__core": "^7.20.5",
43
49
  "svelte": "^5.56.8",
44
- "vite": "^8"
50
+ "vite": "^8",
51
+ "esbuild": "^0.28.1"
45
52
  },
46
53
  "peerDependencies": {
47
54
  "vite": ">=4"
@@ -58,10 +65,11 @@
58
65
  "node": ">=20.0.0"
59
66
  },
60
67
  "scripts": {
61
- "build": "tsc -b",
68
+ "build": "tsc -b && node scripts/build-cjs.mjs",
62
69
  "typecheck": "tsc -b",
63
70
  "lint": "eslint src",
64
71
  "test:unit": "vitest run src --passWithNoTests",
65
- "test:coverage": "vitest run src --passWithNoTests --coverage.enabled --coverage.provider=v8 --coverage.reporter=text-summary --coverage.include='src/**/*.ts' --coverage.exclude='src/**/*.test.ts'"
72
+ "test:coverage": "vitest run src --passWithNoTests --coverage.enabled --coverage.provider=v8 --coverage.reporter=text-summary --coverage.include='src/**/*.ts' --coverage.exclude='src/**/*.test.ts'",
73
+ "build:cjs": "node scripts/build-cjs.mjs"
66
74
  }
67
75
  }