vite-plugin-dts 3.7.2 → 3.7.3
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -506,7 +506,7 @@ function transformAliasImport(filePath, content, aliases, exclude = []) {
|
|
|
506
506
|
return str;
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
const pureImportRE =
|
|
509
|
+
const pureImportRE = /^import\s?['"][^;\n]+?['"];?\n?/g;
|
|
510
510
|
function removePureImport(content) {
|
|
511
511
|
return content.replace(pureImportRE, "");
|
|
512
512
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -504,7 +504,7 @@ function transformAliasImport(filePath, content, aliases, exclude = []) {
|
|
|
504
504
|
return str;
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
const pureImportRE =
|
|
507
|
+
const pureImportRE = /^import\s?['"][^;\n]+?['"];?\n?/g;
|
|
508
508
|
function removePureImport(content) {
|
|
509
509
|
return content.replace(pureImportRE, "");
|
|
510
510
|
}
|