vite-plugin-dts 4.2.3-dev.2 → 4.2.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
@@ -620,7 +620,7 @@ function transformCode(options) {
620
620
  }
621
621
  if (ts__default.isModuleDeclaration(node) && node.body && ts__default.isModuleBlock(node.body)) {
622
622
  if (ts__default.isIdentifier(node.name) && node.name.escapedText === "global" && node.body.statements.some(isVLSNode)) {
623
- s.remove(node.pos, node.end + 1);
623
+ s.remove(node.pos, node.end);
624
624
  } else if (node.modifiers?.[0] && node.modifiers[0].kind === ts__default.SyntaxKind.DeclareKeyword && !node.body.statements.some(
625
625
  (s2) => ts__default.isExportAssignment(s2) || ts__default.isExportDeclaration(s2) || ts__default.isImportDeclaration(s2)
626
626
  )) {
package/dist/index.mjs CHANGED
@@ -616,7 +616,7 @@ function transformCode(options) {
616
616
  }
617
617
  if (ts.isModuleDeclaration(node) && node.body && ts.isModuleBlock(node.body)) {
618
618
  if (ts.isIdentifier(node.name) && node.name.escapedText === "global" && node.body.statements.some(isVLSNode)) {
619
- s.remove(node.pos, node.end + 1);
619
+ s.remove(node.pos, node.end);
620
620
  } else if (node.modifiers?.[0] && node.modifiers[0].kind === ts.SyntaxKind.DeclareKeyword && !node.body.statements.some(
621
621
  (s2) => ts.isExportAssignment(s2) || ts.isExportDeclaration(s2) || ts.isImportDeclaration(s2)
622
622
  )) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "4.2.3-dev.2",
3
+ "version": "4.2.3",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@9.9.0",
6
6
  "license": "MIT",