rolldown-plugin-dts 0.17.4 → 0.17.5
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.mjs +2 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -108,12 +108,12 @@ function createFakeJsPlugin({ sourcemap, cjsDefault, sideEffects }) {
|
|
|
108
108
|
name: "rolldown-plugin-dts:fake-js",
|
|
109
109
|
outputOptions(options) {
|
|
110
110
|
if (options.format === "cjs" || options.format === "commonjs") throw new Error("[rolldown-plugin-dts] Cannot bundle dts files with `cjs` format.");
|
|
111
|
-
const { chunkFileNames } = options;
|
|
111
|
+
const { chunkFileNames, entryFileNames } = options;
|
|
112
112
|
return {
|
|
113
113
|
...options,
|
|
114
114
|
sourcemap: options.sourcemap || sourcemap,
|
|
115
115
|
chunkFileNames(chunk) {
|
|
116
|
-
const nameTemplate = resolveTemplateFn(chunkFileNames || "[name]-[hash].js", chunk);
|
|
116
|
+
const nameTemplate = resolveTemplateFn(chunk.isEntry ? entryFileNames || "[name].js" : chunkFileNames || "[name]-[hash].js", chunk);
|
|
117
117
|
if (chunk.name.endsWith(".d")) {
|
|
118
118
|
const renderedNameWithoutD = filename_js_to_dts(replaceTemplateName(nameTemplate, chunk.name.slice(0, -2)));
|
|
119
119
|
if (RE_DTS.test(renderedNameWithoutD)) return renderedNameWithoutD;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "A Rolldown plugin to generate and bundle dts files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"@babel/parser": "^7.28.5",
|
|
66
66
|
"@babel/types": "^7.28.5",
|
|
67
67
|
"ast-kit": "^2.2.0",
|
|
68
|
-
"birpc": "^2.
|
|
68
|
+
"birpc": "^2.8.0",
|
|
69
69
|
"debug": "^4.4.3",
|
|
70
|
-
"dts-resolver": "^2.1.
|
|
70
|
+
"dts-resolver": "^2.1.3",
|
|
71
71
|
"get-tsconfig": "^4.13.0",
|
|
72
72
|
"magic-string": "^0.30.21"
|
|
73
73
|
},
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@types/babel__generator": "^7.27.0",
|
|
79
79
|
"@types/debug": "^4.1.12",
|
|
80
80
|
"@types/node": "^24.10.0",
|
|
81
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
81
|
+
"@typescript/native-preview": "7.0.0-dev.20251109.1",
|
|
82
82
|
"@volar/typescript": "^2.4.23",
|
|
83
83
|
"@vue/language-core": "^3.1.3",
|
|
84
84
|
"arktype": "^2.1.25",
|