rolldown-plugin-dts 0.12.1 → 0.12.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.
- package/dist/index.js +3 -7
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -269,14 +269,10 @@ function createFakeJsPlugin({ dtsInput, sourcemap }) {
|
|
|
269
269
|
handler: transform
|
|
270
270
|
},
|
|
271
271
|
renderChunk,
|
|
272
|
-
generateBundle(options, bundle) {
|
|
272
|
+
generateBundle: sourcemap ? void 0 : (options, bundle) => {
|
|
273
273
|
for (const chunk of Object.values(bundle)) {
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
-
const maps = JSON.parse(chunk.source);
|
|
277
|
-
maps.sourcesContent = null;
|
|
278
|
-
chunk.source = JSON.stringify(maps);
|
|
279
|
-
} else delete bundle[chunk.fileName];
|
|
274
|
+
if (!RE_DTS_MAP.test(chunk.fileName)) continue;
|
|
275
|
+
delete bundle[chunk.fileName];
|
|
280
276
|
}
|
|
281
277
|
}
|
|
282
278
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "A Rolldown plugin to bundle dts files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/parser": "^7.27.2",
|
|
46
46
|
"@babel/types": "^7.27.1",
|
|
47
47
|
"ast-kit": "^2.0.0",
|
|
48
|
-
"debug": "^4.4.
|
|
48
|
+
"debug": "^4.4.1",
|
|
49
49
|
"dts-resolver": "^2.0.1",
|
|
50
50
|
"get-tsconfig": "^4.10.0"
|
|
51
51
|
},
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@volar/typescript": "^2.4.13",
|
|
60
60
|
"@vue/language-core": "^2.2.10",
|
|
61
61
|
"bumpp": "^10.1.0",
|
|
62
|
-
"diff": "^8.0.
|
|
62
|
+
"diff": "^8.0.1",
|
|
63
63
|
"eslint": "^9.26.0",
|
|
64
64
|
"estree-walker": "^3.0.3",
|
|
65
65
|
"prettier": "^3.5.3",
|
|
66
66
|
"rolldown": "canary",
|
|
67
67
|
"rollup-plugin-dts": "^6.2.1",
|
|
68
68
|
"tinyglobby": "^0.2.13",
|
|
69
|
-
"tsdown": "^0.11.
|
|
69
|
+
"tsdown": "^0.11.9",
|
|
70
70
|
"tsx": "^4.19.4",
|
|
71
71
|
"typescript": "^5.8.3",
|
|
72
72
|
"vitest": "^3.1.3",
|