perf(vue): improve build with smaller bundle sizes (#22131)

This commit is contained in:
Liam DeBeasi
2020-09-22 14:41:49 -04:00
committed by GitHub
parent 7e449a1ca6
commit f82bac1780
5 changed files with 314 additions and 14 deletions

View File

@ -49,7 +49,6 @@ export const defineContainer = <Props extends object>(name: string, componentPro
* They refer to whatever properties are set on an instance of a component.
*/
const Container: FunctionalComponent<Props & InputProps> = defineComponent((props, { attrs, slots, emit }) => {
const { modelValue, ...restOfProps } = props;
const containerRef = ref<HTMLElement>();
const classes = new Set(getComponentClasses(attrs.class));
const onVnodeBeforeMount = (vnode: VNode) => {
@ -61,7 +60,7 @@ export const defineContainer = <Props extends object>(name: string, componentPro
}
};
let finalProps: any = { ...restOfProps };
let finalProps: any = { ...props };
if (routerLinkComponent) {
const navManager: NavManager = inject(NAV_MANAGER);