@lwc/babel-plugin-component 9.0.4-alpha.0 → 9.0.4-alpha.1
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/constants.d.ts +2 -1
- package/dist/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
package/dist/constants.d.ts
CHANGED
|
@@ -25,7 +25,8 @@ declare const API_VERSION_KEY = "apiVersion";
|
|
|
25
25
|
declare const COMPONENT_CLASS_ID = "__lwc_component_class_internal";
|
|
26
26
|
declare const PRIVATE_METHOD_PREFIX = "__lwc_component_class_internal_private_";
|
|
27
27
|
declare const PRIVATE_METHOD_METADATA_KEY = "__lwcTransformedPrivateMethods";
|
|
28
|
+
declare const ENABLE_PRIVATE_METHODS_KEY = "enablePrivateMethods";
|
|
28
29
|
declare const SYNTHETIC_ELEMENT_INTERNALS_KEY = "enableSyntheticElementInternals";
|
|
29
30
|
declare const COMPONENT_FEATURE_FLAG_KEY = "componentFeatureFlag";
|
|
30
|
-
export { DECORATOR_TYPES, 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, PRIVATE_METHOD_PREFIX, PRIVATE_METHOD_METADATA_KEY, SYNTHETIC_ELEMENT_INTERNALS_KEY, COMPONENT_FEATURE_FLAG_KEY, };
|
|
31
|
+
export { DECORATOR_TYPES, 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, PRIVATE_METHOD_PREFIX, PRIVATE_METHOD_METADATA_KEY, ENABLE_PRIVATE_METHODS_KEY, SYNTHETIC_ELEMENT_INTERNALS_KEY, COMPONENT_FEATURE_FLAG_KEY, };
|
|
31
32
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/index.cjs
CHANGED
|
@@ -43,6 +43,7 @@ const API_VERSION_KEY = 'apiVersion';
|
|
|
43
43
|
const COMPONENT_CLASS_ID = '__lwc_component_class_internal';
|
|
44
44
|
const PRIVATE_METHOD_PREFIX = '__lwc_component_class_internal_private_';
|
|
45
45
|
const PRIVATE_METHOD_METADATA_KEY = '__lwcTransformedPrivateMethods';
|
|
46
|
+
const ENABLE_PRIVATE_METHODS_KEY = 'enablePrivateMethods';
|
|
46
47
|
const SYNTHETIC_ELEMENT_INTERNALS_KEY = 'enableSyntheticElementInternals';
|
|
47
48
|
const COMPONENT_FEATURE_FLAG_KEY = 'componentFeatureFlag';
|
|
48
49
|
|
|
@@ -125,6 +126,9 @@ function component ({ types: t }) {
|
|
|
125
126
|
if (state.opts.enableSyntheticElementInternals === true) {
|
|
126
127
|
properties.push(t.objectProperty(t.identifier(SYNTHETIC_ELEMENT_INTERNALS_KEY), t.booleanLiteral(true)));
|
|
127
128
|
}
|
|
129
|
+
if (state.opts.enablePrivateMethods === true) {
|
|
130
|
+
properties.push(t.objectProperty(t.identifier(ENABLE_PRIVATE_METHODS_KEY), t.booleanLiteral(true)));
|
|
131
|
+
}
|
|
128
132
|
const registerComponentExpression = t.callExpression(registerComponentId, [
|
|
129
133
|
node,
|
|
130
134
|
t.objectExpression(properties),
|
|
@@ -1512,5 +1516,5 @@ function LwcClassTransform(api) {
|
|
|
1512
1516
|
exports.LwcPrivateMethodTransform = privateMethodTransform;
|
|
1513
1517
|
exports.LwcReversePrivateMethodTransform = reversePrivateMethodTransform;
|
|
1514
1518
|
exports.default = LwcClassTransform;
|
|
1515
|
-
/** version: 9.0.4-alpha.
|
|
1519
|
+
/** version: 9.0.4-alpha.1 */
|
|
1516
1520
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const API_VERSION_KEY = 'apiVersion';
|
|
|
39
39
|
const COMPONENT_CLASS_ID = '__lwc_component_class_internal';
|
|
40
40
|
const PRIVATE_METHOD_PREFIX = '__lwc_component_class_internal_private_';
|
|
41
41
|
const PRIVATE_METHOD_METADATA_KEY = '__lwcTransformedPrivateMethods';
|
|
42
|
+
const ENABLE_PRIVATE_METHODS_KEY = 'enablePrivateMethods';
|
|
42
43
|
const SYNTHETIC_ELEMENT_INTERNALS_KEY = 'enableSyntheticElementInternals';
|
|
43
44
|
const COMPONENT_FEATURE_FLAG_KEY = 'componentFeatureFlag';
|
|
44
45
|
|
|
@@ -121,6 +122,9 @@ function component ({ types: t }) {
|
|
|
121
122
|
if (state.opts.enableSyntheticElementInternals === true) {
|
|
122
123
|
properties.push(t.objectProperty(t.identifier(SYNTHETIC_ELEMENT_INTERNALS_KEY), t.booleanLiteral(true)));
|
|
123
124
|
}
|
|
125
|
+
if (state.opts.enablePrivateMethods === true) {
|
|
126
|
+
properties.push(t.objectProperty(t.identifier(ENABLE_PRIVATE_METHODS_KEY), t.booleanLiteral(true)));
|
|
127
|
+
}
|
|
124
128
|
const registerComponentExpression = t.callExpression(registerComponentId, [
|
|
125
129
|
node,
|
|
126
130
|
t.objectExpression(properties),
|
|
@@ -1506,5 +1510,5 @@ function LwcClassTransform(api) {
|
|
|
1506
1510
|
}
|
|
1507
1511
|
|
|
1508
1512
|
export { privateMethodTransform as LwcPrivateMethodTransform, reversePrivateMethodTransform as LwcReversePrivateMethodTransform, LwcClassTransform as default };
|
|
1509
|
-
/** version: 9.0.4-alpha.
|
|
1513
|
+
/** version: 9.0.4-alpha.1 */
|
|
1510
1514
|
//# sourceMappingURL=index.js.map
|
package/dist/types.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface LwcBabelPluginOptions {
|
|
|
14
14
|
instrumentation?: InstrumentationObject;
|
|
15
15
|
apiVersion?: number;
|
|
16
16
|
enableSyntheticElementInternals?: boolean;
|
|
17
|
+
enablePrivateMethods?: boolean;
|
|
17
18
|
componentFeatureFlagModulePath?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface LwcBabelPluginPass extends PluginPass {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
|
5
5
|
],
|
|
6
6
|
"name": "@lwc/babel-plugin-component",
|
|
7
|
-
"version": "9.0.4-alpha.
|
|
7
|
+
"version": "9.0.4-alpha.1",
|
|
8
8
|
"description": "Babel plugin to transform a LWC module",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@babel/helper-module-imports": "7.28.6",
|
|
55
|
-
"@lwc/errors": "9.0.4-alpha.
|
|
56
|
-
"@lwc/shared": "9.0.4-alpha.
|
|
55
|
+
"@lwc/errors": "9.0.4-alpha.1",
|
|
56
|
+
"@lwc/shared": "9.0.4-alpha.1",
|
|
57
57
|
"line-column": "~1.0.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|