Skip to content

Commit

Permalink
feat(ssr-runtime): export renderComponent alias (#4636)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Oct 15, 2024
1 parent a449992 commit 5d2c12d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { renderComponent, serverSideRenderComponent } from '../index';

describe('renderComponent as alias of serverSideRenderComponent ', () => {
it('is an alias', () => {
expect(renderComponent).toBe(serverSideRenderComponent);
});
});
9 changes: 8 additions & 1 deletion packages/@lwc/ssr-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
export { ClassList } from './class-list';
export { LightningElement, LightningElementConstructor } from './lightning-element';
export { MutationTracker } from './mutation-tracker';
export { fallbackTmpl, GenerateMarkupFn, renderAttrs, serverSideRenderComponent } from './render';
// renderComponent is an alias for serverSideRenderComponent
export {
fallbackTmpl,
GenerateMarkupFn,
renderAttrs,
serverSideRenderComponent,
serverSideRenderComponent as renderComponent,
} from './render';
export { toIteratorDirective } from './to-iterator-directive';
export { validateStyleTextContents } from './validate-style-text-contents';

0 comments on commit 5d2c12d

Please sign in to comment.