refactor: update babel-helper-module-imports and use its built-in imports-merging feature

The snapshots are also updated. These are just order-related changes,
the functionality remains the same.
This commit is contained in:
Haoqun Jiang
2024-03-27 22:00:49 +08:00
parent fb00715da4
commit 9770f43fd3
5 changed files with 56 additions and 46 deletions

31
pnpm-lock.yaml generated
View File

@ -71,8 +71,8 @@ importers:
packages/babel-plugin-jsx:
dependencies:
'@babel/helper-module-imports':
specifier: ~7.22.15
version: 7.22.15
specifier: ^7.24.3
version: 7.24.3
'@babel/helper-plugin-utils':
specifier: ^7.22.5
version: 7.22.5
@ -138,8 +138,8 @@ importers:
specifier: ^7.23.5
version: 7.23.5
'@babel/helper-module-imports':
specifier: ~7.22.15
version: 7.22.15
specifier: ^7.24.3
version: 7.24.3
'@babel/helper-plugin-utils':
specifier: ^7.22.5
version: 7.22.5
@ -339,6 +339,13 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.23.9
dev: true
/@babel/helper-module-imports@7.24.3:
resolution: {integrity: sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.24.0
/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9):
resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}
@ -348,7 +355,7 @@ packages:
dependencies:
'@babel/core': 7.23.9
'@babel/helper-environment-visitor': 7.22.20
'@babel/helper-module-imports': 7.22.15
'@babel/helper-module-imports': 7.24.3
'@babel/helper-simple-access': 7.22.5
'@babel/helper-split-export-declaration': 7.22.6
'@babel/helper-validator-identifier': 7.22.20
@ -721,7 +728,7 @@ packages:
'@babel/core': ^7.0.0-0
dependencies:
'@babel/core': 7.23.9
'@babel/helper-module-imports': 7.22.15
'@babel/helper-module-imports': 7.24.3
'@babel/helper-plugin-utils': 7.22.5
'@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.9)
dev: true
@ -1382,6 +1389,14 @@ packages:
'@babel/helper-validator-identifier': 7.22.20
to-fast-properties: 2.0.0
/@babel/types@7.24.0:
resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-string-parser': 7.23.4
'@babel/helper-validator-identifier': 7.22.20
to-fast-properties: 2.0.0
/@bcoe/v8-coverage@0.2.3:
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
dev: true
@ -2199,7 +2214,7 @@ packages:
optional: true
dependencies:
'@babel/core': 7.23.9
'@babel/helper-module-imports': 7.22.15
'@babel/helper-module-imports': 7.24.3
'@babel/helper-plugin-utils': 7.22.5
'@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.9)
'@babel/template': 7.23.9
@ -2221,7 +2236,7 @@ packages:
dependencies:
'@babel/code-frame': 7.23.5
'@babel/core': 7.23.9
'@babel/helper-module-imports': 7.22.15
'@babel/helper-module-imports': 7.24.3
'@babel/helper-plugin-utils': 7.22.5
'@babel/parser': 7.23.9
'@vue/compiler-sfc': 3.4.15