rolldown-plugin-dts 0.7.12 → 0.7.13
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -244,7 +244,7 @@ function createFakeJsPlugin({ dtsInput }) {
|
|
|
244
244
|
entryFileNames: options.entryFileNames ?? (dtsInput ? "[name].ts" : void 0),
|
|
245
245
|
chunkFileNames(chunk) {
|
|
246
246
|
const original = (typeof options.chunkFileNames === "function" ? options.chunkFileNames(chunk) : options.chunkFileNames) || "[name]-[hash].js";
|
|
247
|
-
if (chunk.name.endsWith(".d")) return filename_js_to_dts(original);
|
|
247
|
+
if (!original.includes(".d") && chunk.name.endsWith(".d")) return filename_js_to_dts(original);
|
|
248
248
|
return original;
|
|
249
249
|
}
|
|
250
250
|
};
|
|
@@ -618,7 +618,7 @@ function createGeneratePlugin({ tsconfig, compilerOptions, isolatedDeclaration:
|
|
|
618
618
|
...options,
|
|
619
619
|
entryFileNames(chunk) {
|
|
620
620
|
const original = (typeof options.entryFileNames === "function" ? options.entryFileNames(chunk) : options.entryFileNames) || "[name].js";
|
|
621
|
-
if (chunk.name.endsWith(".d")) return original.replace(RE_JS, ".$1ts");
|
|
621
|
+
if (!original.includes(".d") && chunk.name.endsWith(".d")) return original.replace(RE_JS, ".$1ts");
|
|
622
622
|
return original;
|
|
623
623
|
}
|
|
624
624
|
};
|