@lwc/babel-plugin-component
Advanced tools
Comparing version 6.6.7 to 6.7.0
@@ -27,2 +27,3 @@ declare const AMBIGUOUS_PROP_SET: Map<string, string>; | ||
declare const API_VERSION_KEY = "apiVersion"; | ||
export { AMBIGUOUS_PROP_SET, DECORATOR_TYPES, DISALLOWED_PROP_SET, LWC_PACKAGE_ALIAS, LWC_PACKAGE_EXPORTS, LWC_COMPONENT_PROPERTIES, REGISTER_COMPONENT_ID, REGISTER_DECORATORS_ID, TEMPLATE_KEY, COMPONENT_NAME_KEY, API_VERSION_KEY, }; | ||
declare const COMPONENT_CLASS_ID = "__lwc_component_class_internal"; | ||
export { AMBIGUOUS_PROP_SET, DECORATOR_TYPES, DISALLOWED_PROP_SET, LWC_PACKAGE_ALIAS, LWC_PACKAGE_EXPORTS, LWC_COMPONENT_PROPERTIES, REGISTER_COMPONENT_ID, REGISTER_DECORATORS_ID, TEMPLATE_KEY, COMPONENT_NAME_KEY, API_VERSION_KEY, COMPONENT_CLASS_ID, }; |
@@ -62,2 +62,3 @@ /** | ||
const API_VERSION_KEY = 'apiVersion'; | ||
const COMPONENT_CLASS_ID = '__lwc_component_class_internal'; | ||
@@ -118,3 +119,3 @@ /* | ||
// }) | ||
return t.callExpression(registerComponentId, [ | ||
const registerComponentExpression = t.callExpression(registerComponentId, [ | ||
node, | ||
@@ -129,2 +130,10 @@ t.objectExpression([ | ||
]); | ||
// Example: | ||
// const __lwc_component_class_internal = registerComponent(cmp, ...); | ||
// This provides a way to access the component class for other lwc tools | ||
const classIdentifier = t.identifier(COMPONENT_CLASS_ID); | ||
declarationPath.parentPath.insertBefore(t.variableDeclaration('const', [ | ||
t.variableDeclarator(classIdentifier, registerComponentExpression), | ||
])); | ||
return classIdentifier; | ||
} | ||
@@ -1240,3 +1249,3 @@ return { | ||
exports.default = LwcClassTransform; | ||
/** version: 6.6.7 */ | ||
/** version: 6.7.0 */ | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -58,2 +58,3 @@ /** | ||
const API_VERSION_KEY = 'apiVersion'; | ||
const COMPONENT_CLASS_ID = '__lwc_component_class_internal'; | ||
@@ -114,3 +115,3 @@ /* | ||
// }) | ||
return t.callExpression(registerComponentId, [ | ||
const registerComponentExpression = t.callExpression(registerComponentId, [ | ||
node, | ||
@@ -125,2 +126,10 @@ t.objectExpression([ | ||
]); | ||
// Example: | ||
// const __lwc_component_class_internal = registerComponent(cmp, ...); | ||
// This provides a way to access the component class for other lwc tools | ||
const classIdentifier = t.identifier(COMPONENT_CLASS_ID); | ||
declarationPath.parentPath.insertBefore(t.variableDeclaration('const', [ | ||
t.variableDeclarator(classIdentifier, registerComponentExpression), | ||
])); | ||
return classIdentifier; | ||
} | ||
@@ -1236,3 +1245,3 @@ return { | ||
export { LwcClassTransform as default }; | ||
/** version: 6.6.7 */ | ||
/** version: 6.7.0 */ | ||
//# sourceMappingURL=index.js.map |
@@ -7,3 +7,3 @@ { | ||
"name": "@lwc/babel-plugin-component", | ||
"version": "6.6.7", | ||
"version": "6.7.0", | ||
"description": "Babel plugin to transform a LWC module", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
"@babel/helper-module-imports": "7.24.3", | ||
"@lwc/errors": "6.6.7", | ||
"@lwc/shared": "6.6.7", | ||
"@lwc/errors": "6.7.0", | ||
"@lwc/shared": "6.7.0", | ||
"line-column": "~1.0.2" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204423
2645
+ Added@lwc/errors@6.7.0(transitive)
+ Added@lwc/shared@6.7.0(transitive)
- Removed@lwc/errors@6.6.7(transitive)
- Removed@lwc/shared@6.6.7(transitive)
Updated@lwc/errors@6.7.0
Updated@lwc/shared@6.7.0