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 CHANGED
@@ -506,7 +506,7 @@ function transformAliasImport(filePath, content, aliases, exclude = []) {
506
506
  return str;
507
507
  });
508
508
  }
509
- const pureImportRE = /import\s?['"][^;\n]+?['"];?\n?/g;
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 = /import\s?['"][^;\n]+?['"];?\n?/g;
507
+ const pureImportRE = /^import\s?['"][^;\n]+?['"];?\n?/g;
508
508
  function removePureImport(content) {
509
509
  return content.replace(pureImportRE, "");
510
510
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "qmhc",