vite-plugin-dts 5.0.3 → 5.1.1

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 +5 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -51,6 +51,11 @@ export default defineConfig({
51
51
  })
52
52
  ```
53
53
 
54
+ When publishing both ESM and CommonJS, explicitly add `outDirs` entries with
55
+ `moduleFormat: 'esm'` and `moduleFormat: 'cjs'`; Vite's JavaScript formats are not inferred.
56
+ Each entry is bundled once and reused for both declaration formats. Configure conditional
57
+ `exports.types` entries separately in `package.json`.
58
+
54
59
  If you start with official Vite template, you should specify the `tsconfigPath`:
55
60
 
56
61
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "5.0.3",
3
+ "version": "5.1.1",
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.0.3"
46
+ "unplugin-dts": "1.1.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.57.0"