vite-plugin-dts 4.0.1 → 4.0.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.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1185,16 +1185,16 @@ ${logPrefix} ${kolorist.yellow(
|
|
|
1185
1185
|
let fromPath = normalizePath(node_path.relative(node_path.dirname(entryDtsPath), sourceEntry));
|
|
1186
1186
|
fromPath = fromPath.replace(dtsRE, "");
|
|
1187
1187
|
fromPath = fullRelativeRE.test(fromPath) ? fromPath : `./${fromPath}`;
|
|
1188
|
-
let content = "";
|
|
1188
|
+
let content = "export {}\n";
|
|
1189
1189
|
if (emittedFiles.has(sourceEntry)) {
|
|
1190
1190
|
if (hasNormalExport(emittedFiles.get(sourceEntry))) {
|
|
1191
|
-
content
|
|
1192
|
-
`;
|
|
1191
|
+
content = `export * from '${fromPath}'
|
|
1192
|
+
${content}`;
|
|
1193
1193
|
}
|
|
1194
1194
|
if (hasExportDefault(emittedFiles.get(sourceEntry))) {
|
|
1195
1195
|
content += `import ${libName} from '${fromPath}'
|
|
1196
1196
|
export default ${libName}
|
|
1197
|
-
`;
|
|
1197
|
+
${content}`;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
await writeOutput(cleanPath(entryDtsPath), content, outDir);
|
package/dist/index.mjs
CHANGED
|
@@ -1181,16 +1181,16 @@ ${logPrefix} ${yellow(
|
|
|
1181
1181
|
let fromPath = normalizePath(relative(dirname(entryDtsPath), sourceEntry));
|
|
1182
1182
|
fromPath = fromPath.replace(dtsRE, "");
|
|
1183
1183
|
fromPath = fullRelativeRE.test(fromPath) ? fromPath : `./${fromPath}`;
|
|
1184
|
-
let content = "";
|
|
1184
|
+
let content = "export {}\n";
|
|
1185
1185
|
if (emittedFiles.has(sourceEntry)) {
|
|
1186
1186
|
if (hasNormalExport(emittedFiles.get(sourceEntry))) {
|
|
1187
|
-
content
|
|
1188
|
-
`;
|
|
1187
|
+
content = `export * from '${fromPath}'
|
|
1188
|
+
${content}`;
|
|
1189
1189
|
}
|
|
1190
1190
|
if (hasExportDefault(emittedFiles.get(sourceEntry))) {
|
|
1191
1191
|
content += `import ${libName} from '${fromPath}'
|
|
1192
1192
|
export default ${libName}
|
|
1193
|
-
`;
|
|
1193
|
+
${content}`;
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
await writeOutput(cleanPath(entryDtsPath), content, outDir);
|