vite-plugin-dts 5.1.1 → 5.1.2

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 +4 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -51,6 +51,10 @@ export default defineConfig({
51
51
  })
52
52
  ```
53
53
 
54
+ When `moduleFormat` is omitted, the plugin preserves TypeScript's declaration extensions: `.ts` → `.d.ts`, `.mts` → `.d.mts`, and `.cts` → `.d.cts`, including declaration maps.
55
+
56
+ Declaration maps preserve absolute `file://` source URLs, including Windows cross-drive paths, across all output directories.
57
+
54
58
  When publishing both ESM and CommonJS, explicitly add `outDirs` entries with
55
59
  `moduleFormat: 'esm'` and `moduleFormat: 'cjs'`; Vite's JavaScript formats are not inferred.
56
60
  Each entry is bundled once and reused for both declaration formats. Configure conditional
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "qmhc",
@@ -43,7 +43,7 @@
43
43
  "url": "https://github.com/qmhc/unplugin-dts/issues"
44
44
  },
45
45
  "dependencies": {
46
- "unplugin-dts": "1.1.1"
46
+ "unplugin-dts": "1.1.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.57.0"