@putout/plugin-esm 10.3.0 → 10.4.0

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.
@@ -58,10 +58,12 @@ function isExported(binding) {
58
58
  }
59
59
 
60
60
  function removeSpecifier(path) {
61
- if (path.parentPath.node.specifiers.length === 1)
61
+ if (path.parentPath.node.specifiers.length === 1) {
62
62
  remove(path.parentPath);
63
- else
64
- remove(path);
63
+ return;
64
+ }
65
+
66
+ remove(path);
65
67
  }
66
68
 
67
69
  function createExport(path, parentReference) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-esm",
3
- "version": "10.3.0",
3
+ "version": "10.4.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin improves ability to transform ESM code",
@@ -58,7 +58,6 @@
58
58
  "@putout/plugin-tape": "*",
59
59
  "@putout/plugin-typescript": "*",
60
60
  "@putout/test": "^15.0.0",
61
- "c8": "^10.0.0",
62
61
  "eslint": "^10.0.0",
63
62
  "eslint-plugin-n": "^17.0.0",
64
63
  "eslint-plugin-putout": "^31.0.0",
@@ -66,6 +65,7 @@
66
65
  "montag": "^1.2.1",
67
66
  "nodemon": "^3.0.1",
68
67
  "redlint": "^6.0.0",
68
+ "superc8": "^12.0.0",
69
69
  "supertape": "^12.0.0"
70
70
  },
71
71
  "peerDependencies": {