@lwc/babel-plugin-component 8.11.0 → 8.12.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.
package/README.md CHANGED
@@ -4,15 +4,15 @@
4
4
 
5
5
  This babel plugin does the following transform:
6
6
 
7
- - Global decorator transform:
8
- - Transform `@api` decorator to `publicProperties` and `publicMethods` static properties.
9
- - Transform `@wire` decorator to `wire` static property.
10
- - Transform `@track` decorator to `track` static property.
11
- - LWC component class sugar syntax:
12
- - Check for misspelled lifecycle hooks.
13
- - Import and inject `render` from a collocated template if a component class doesn't already implement a `render` method.
14
- - Optimization:
15
- - If the compiler inject the default template a component, it will also wire the template style to the component.
7
+ - Global decorator transform:
8
+ - Transform `@api` decorator to `publicProperties` and `publicMethods` static properties.
9
+ - Transform `@wire` decorator to `wire` static property.
10
+ - Transform `@track` decorator to `track` static property.
11
+ - LWC component class sugar syntax:
12
+ - Check for misspelled lifecycle hooks.
13
+ - Import and inject `render` from a collocated template if a component class doesn't already implement a `render` method.
14
+ - Optimization:
15
+ - If the compiler inject the default template a component, it will also wire the template style to the component.
16
16
 
17
17
  ## Installation
18
18
 
@@ -42,11 +42,11 @@ const { code } = babel.transformSync(source, {
42
42
 
43
43
  ## Options
44
44
 
45
- - `name` (type: `string`, optional) - name of the component, e.g. `foo` in `x/foo`.
46
- - `namespace` (type: `string`, optional) - namepace of the component, e.g. `x` in `x/foo`.
47
- - `isExplicitImport` (type: `boolean`, optional) - true if this is an explicit import.
48
- - `dynamicImports` (type: `object`, optional) - see below:
49
- - `loader` (type: `string`, optional) - loader to use at runtime.
50
- - `strictSpecifier` (type: `boolean`, optional) - true if a strict specifier should be used.
51
- - `instrumentation` (type: `InstrumentationObject`, optional) - instrumentation object to gather metrics and non-error logs for internal use. See the `@lwc/errors` package for details on the interface.
52
- - `apiVersion` (type: `number`, optional) - API version to associate with the compiled component.
45
+ - `name` (type: `string`, optional) - name of the component, e.g. `foo` in `x/foo`.
46
+ - `namespace` (type: `string`, optional) - namepace of the component, e.g. `x` in `x/foo`.
47
+ - `isExplicitImport` (type: `boolean`, optional) - true if this is an explicit import.
48
+ - `dynamicImports` (type: `object`, optional) - see below:
49
+ - `loader` (type: `string`, optional) - loader to use at runtime.
50
+ - `strictSpecifier` (type: `boolean`, optional) - true if a strict specifier should be used.
51
+ - `instrumentation` (type: `InstrumentationObject`, optional) - instrumentation object to gather metrics and non-error logs for internal use. See the `@lwc/errors` package for details on the interface.
52
+ - `apiVersion` (type: `number`, optional) - API version to associate with the compiled component.
package/dist/index.cjs.js CHANGED
@@ -1276,5 +1276,5 @@ function LwcClassTransform(api) {
1276
1276
  }
1277
1277
 
1278
1278
  exports.default = LwcClassTransform;
1279
- /** version: 8.11.0 */
1279
+ /** version: 8.12.0 */
1280
1280
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.js CHANGED
@@ -1272,5 +1272,5 @@ function LwcClassTransform(api) {
1272
1272
  }
1273
1273
 
1274
1274
  export { LwcClassTransform as default };
1275
- /** version: 8.11.0 */
1275
+ /** version: 8.12.0 */
1276
1276
  //# sourceMappingURL=index.js.map
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": "8.11.0",
7
+ "version": "8.12.0",
8
8
  "description": "Babel plugin to transform a LWC module",
9
9
  "keywords": [
10
10
  "lwc"
@@ -22,6 +22,9 @@
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
+ "volta": {
26
+ "extends": "../../../package.json"
27
+ },
25
28
  "main": "dist/index.cjs.js",
26
29
  "module": "dist/index.js",
27
30
  "types": "dist/index.d.ts",
@@ -43,8 +46,8 @@
43
46
  },
44
47
  "dependencies": {
45
48
  "@babel/helper-module-imports": "7.25.9",
46
- "@lwc/errors": "8.11.0",
47
- "@lwc/shared": "8.11.0",
49
+ "@lwc/errors": "8.12.0",
50
+ "@lwc/shared": "8.12.0",
48
51
  "line-column": "~1.0.2"
49
52
  },
50
53
  "devDependencies": {