File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
packages/@lwc/ssr-compiler/src/compile-js/decorators Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -34,27 +34,3 @@ export function validateUniqueDecorator(decorators: EsDecorator[]) {
3434 throw generateError ( api , DecoratorErrors . API_AND_TRACK_DECORATOR_CONFLICT ) ;
3535 }
3636}
37-
38- // function validateUniqueDecorator(decorators: EsDecorator[]) {
39- // if (decorators.length < 2) {
40- // return;
41- // }
42-
43- // const expressions = decorators.map(({ expression }) => expression);
44-
45- // const wire = expressions.find(
46- // (expr) => is.callExpression(expr) && is.identifier(expr.callee, { name: 'wire' })
47- // );
48-
49- // const api = expressions.find((expr) => is.identifier(expr, { name: 'api' }));
50-
51- // if (wire && api) {
52- // throw generateError(wire, DecoratorErrors.CONFLICT_WITH_ANOTHER_DECORATOR, 'api');
53- // }
54-
55- // const track = expressions.find((expr) => is.identifier(expr, { name: 'track' }));
56-
57- // if (wire && track) {
58- // throw generateError(wire, DecoratorErrors.CONFLICT_WITH_ANOTHER_DECORATOR, 'track');
59- // }
60- // }
You can’t perform that action at this time.
0 commit comments