@lwc/babel-plugin-component 2.20.4 → 2.22.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/utils.js +2 -0
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "bugs": {
11
11
  "url": "https://github.com/salesforce/lwc/issues"
12
12
  },
13
- "version": "2.20.4",
13
+ "version": "2.22.0",
14
14
  "main": "src/index.js",
15
15
  "typings": "src/index.d.ts",
16
16
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@babel/helper-module-imports": "~7.18.6",
24
- "@lwc/errors": "2.20.4",
25
- "@lwc/shared": "2.20.4",
24
+ "@lwc/errors": "2.22.0",
25
+ "@lwc/shared": "2.22.0",
26
26
  "line-column": "~1.0.2"
27
27
  },
28
28
  "peerDependencies": {
package/src/utils.js CHANGED
@@ -55,6 +55,8 @@ function getEngineImportSpecifiers(path) {
55
55
  imports
56
56
  // Flat-map the specifier list for each import statement
57
57
  .flatMap((importStatement) => importStatement.get('specifiers'))
58
+ // Skip ImportDefaultSpecifier and ImportNamespaceSpecifier
59
+ .filter((specifier) => specifier.type === 'ImportSpecifier')
58
60
  // Get the list of specifiers with their name
59
61
  .map((specifier) => {
60
62
  const imported = specifier.get('imported').node.name;