Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"defaultMode": "bypassPermissions",
"allow": [
"Edit",
"Write",
"Read",
"Bash",
"WebFetch",
"WebSearch",
"Glob",
"Grep",
"NotebookEdit",
"Skill",
"Agent",
"ExitPlanMode",
"TaskCreate",
"TaskGet",
"TaskList",
"TaskUpdate",
"TaskStop",
"AskUserQuestion",
"TaskOutput",
"KillShell",
"MCPSearch",
"LSP"
]
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ __benchmarks_results__/
# Auto-generated fixture outputs
**/fixtures/**/expected.*
**/fixtures/**/error.*
**/fixtures/**/swc-expected.*
packages/@lwc/template-compiler/src/__tests__/fixtures/**/ast.json
packages/@lwc/template-compiler/src/__tests__/fixtures/**/metadata.json

Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/babel-plugin-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"name": "@lwc/babel-plugin-component",
"version": "9.0.3",
"description": "Babel plugin to transform a LWC module",
"description": "[DEPRECATED] Babel plugin to transform a LWC module โ€” replaced by @lwc/swc-plugin-component",
"keywords": [
"lwc"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from 'lwc';
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
set first(value) {}
get first() {}
get second() {
return this.s;
}
set second(value) {
this.s = value;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
first: {
config: 3
},
second: {
config: 3
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1096: Duplicate @api property \"foo\".",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1096: Duplicate @api property \"foo\".",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1112: @api get something and @api set something detected in class declaration. Only one of the two needs to be decorated with @api.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1110: Invalid property name \"class\". \"class\" is a reserved attribute.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1110: Invalid property name \"is\". \"is\" is a reserved attribute.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1110: Invalid property name \"slot\". \"slot\" is a reserved attribute.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1110: Invalid property name \"style\". \"style\" is a reserved attribute.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1106: @api cannot be applied to a computed property, getter, setter or method.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
/*LWC compiler vX.X.X*/}, {
publicProps: {
data: {
config: 0
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
/*LWC compiler vX.X.X*/}, {
publicProps: {
ariaDescribedBy: {
config: 0
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1096: Duplicate @api property \"foo\".",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
get first() {
return null;
}
get second() {
return this.s;
}
set second(value) {
this.s = value;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
first: {
config: 1
},
second: {
config: 3
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1109: Ambiguous attribute name \"maxlength\". \"maxlength\" will never be called from template because its corresponding property is camel cased. Consider renaming to \"maxLength\".",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1099: Boolean public property must default to false.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1109: Ambiguous attribute name \"tabindex\". \"tabindex\" will never be called from template because its corresponding property is camel cased. Consider renaming to \"tabIndex\".",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1111: Invalid property name \"part\". \"part\" is a future reserved attribute for web components.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1107: Invalid property name \"dataFooBar\". Properties starting with \"data\" are reserved attributes.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1108: Invalid property name \"onChangeHandler\". Properties starting with \"on\" are reserved for event handlers.",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "Error: LWC1093: @api method or property cannot be used with @track",
"filename": "test.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Text extends LightningElement {
get aloneGet() {}
get myget() {}
set myget(x) {
return 1;
}
m1() {}
m2() {}
static{
this.ctor = "ctor";
}
static get ctorGet() {
return 1;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
publicProp: {
config: 0
},
aloneGet: {
config: 1
},
myget: {
config: 3
}
},
publicMethods: [
"m1"
],
fields: [
"privateProp"
]
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Text = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Outer extends LightningElement {
constructor(...args){
super(...args), this.a = registerDecorators(class extends LightningElement {
}, {
publicProps: {
innerA: {
config: 0
}
}
});
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
outer: {
config: 0
}
},
fields: [
"a"
]
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Outer = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
get a() {
return this._a;
}
set a(value) {
this._a = value;
}
get b() {
return this._b;
}
set b(value) {
this._b = value;
}
constructor(...args){
super(...args), this._a = true, this._b = false;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
a: {
config: 3
},
b: {
config: 3
}
},
fields: [
"_a",
"_b"
]
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
get publicGetter() {
return 1;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
publicGetter: {
config: 1
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
foo() {}
/*LWC compiler vX.X.X*/}, {
publicMethods: [
"foo"
]
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import tmpl from "./test.html";
import { LightningElement, registerDecorators, registerComponent } from "lwc";
const __lwc_component_class_internal = registerComponent(registerDecorators(class Test extends LightningElement {
constructor(...args){
super(...args), this.test = 1;
}
/*LWC compiler vX.X.X*/}, {
publicProps: {
test: {
config: 0
}
}
}), {
tmpl: tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
const Test = __lwc_component_class_internal;
Loading
Loading