-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compiler): removed compiler slotset (#348)
* refactor(engine): creating ./dom folder for all DOM stuff * fix(engine): removing fallback, review feedbaack * fix(engine): fixing test failures * refactor(engine): conditinally use of native shadowRoot * fix(engine): requiring option.is in createElement * feat(compiler): removed compiler slotset * fix(engine): slot children allocation * fix(engine): integration tests * fix(engine): linting
- Loading branch information
1 parent
119aa7c
commit cab0f5b
Showing
44 changed files
with
378 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/lwc-compiler/src/__tests__/fixtures/expected-styled-prod.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ export default function tmpl($api, $cmp, $slotset, $ctx) { | |
visible: true | ||
}, | ||
key: 2 | ||
}) | ||
}, []) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ export default function tmpl($api, $cmp, $slotset, $ctx) { | |
is: 'ns-row' | ||
}, | ||
key: 1 | ||
}) | ||
}, []) | ||
] | ||
) | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ export default function tmpl($api, $cmp, $slotset, $ctx) { | |
xClass: 'bar' | ||
}, | ||
key: 1 | ||
}) | ||
}, []) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 17 additions & 8 deletions
25
...s/lwc-template-compiler/src/__tests__/fixtures/regression/slot-name-with-dash/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 19 additions & 9 deletions
28
packages/lwc-template-compiler/src/__tests__/fixtures/slots/component-definition/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
import _xFoo from 'x-foo'; | ||
export default function tmpl($api, $cmp, $slotset, $ctx) { | ||
const { c: api_custom_element } = $api; | ||
const { $default$: slot0 } = $slotset; | ||
const { s: api_slot, c: api_custom_element } = $api; | ||
|
||
return [ | ||
api_custom_element('x-foo', _xFoo, { | ||
key: 1, | ||
slotset: { | ||
$default$: slot0 || [] | ||
} | ||
}) | ||
api_custom_element( | ||
'x-foo', | ||
_xFoo, | ||
{ | ||
key: 2 | ||
}, | ||
[ | ||
api_slot( | ||
'', | ||
{ | ||
key: 1 | ||
}, | ||
[], | ||
$slotset | ||
) | ||
] | ||
) | ||
]; | ||
} | ||
tmpl.slots = ['$default$']; | ||
tmpl.slots = ['']; |
2 changes: 1 addition & 1 deletion
2
...ges/lwc-template-compiler/src/__tests__/fixtures/slots/component-definition/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"metadata": { | ||
"templateDependencies": ["x-foo"], | ||
"definedSlots": ["$default$"] | ||
"definedSlots": [""] | ||
} | ||
} |
Oops, something went wrong.