Skip to content

Commit

Permalink
feat(convention): rewrite runtime-html decorators (#1960)
Browse files Browse the repository at this point in the history
BREAKING CHANGES: decorators that will be rewritten as calls: bindable, containerless, useShadowDOM, capture, alias, inject
  • Loading branch information
Sayan751 committed May 6, 2024
1 parent 0acd512 commit eaf2cd7
Show file tree
Hide file tree
Showing 13 changed files with 1,557 additions and 191 deletions.
9 changes: 6 additions & 3 deletions packages-tooling/__tests__/src/babel-jest/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ export const name = "foo-bar";
export const template = "<template></template>";
export default template;
export const dependencies = [ ];
export const bindables = [];
let _e;
export function register(container) {
if (!_e) {
_e = CustomElement.define({ name, template, dependencies });
_e = CustomElement.define({ name, template, dependencies, bindables });
}
container.register(_e);
}
Expand All @@ -63,10 +64,11 @@ export const template = "<template></template>";
export default template;
export const dependencies = [ shadowCSS(d0) ];
export const shadowOptions = { mode: 'open' };
export const bindables = [];
let _e;
export function register(container) {
if (!_e) {
_e = CustomElement.define({ name, template, dependencies, shadowOptions });
_e = CustomElement.define({ name, template, dependencies, shadowOptions, bindables });
}
container.register(_e);
}
Expand All @@ -89,10 +91,11 @@ export const name = "foo-bar";
export const template = "<template></template>";
export default template;
export const dependencies = [ cssModules(d0) ];
export const bindables = [];
let _e;
export function register(container) {
if (!_e) {
_e = CustomElement.define({ name, template, dependencies });
_e = CustomElement.define({ name, template, dependencies, bindables });
}
container.register(_e);
}
Expand Down
Loading

0 comments on commit eaf2cd7

Please sign in to comment.