question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it normal for sppkg file to jump from 521k to 732k just by adding people picker

See original GitHub issue

Category

  • Enhancement
  • Bug
  • Question

Version

Latest

Expected / Desired Behavior / Question

I installed the latest version to get the People Picker and my finished sppkg file went from 521k to 732k. Is this normal? I presume it is loading the entire library and not just the people picker. Is there a way to trim down what is imported?

Question 2: If I deploy my webpart so that you need to install it on every site through Add an App, does it basically have to cache a site-specific copy of the webpart.js? Or does it just load a cached version pointing back to the tenant app catalog?

Question 3: If I do add this install, does it impact the gulp serve --nobrowser webpart update process? ie make it a lot longer to see the update in the browser after I save my file in VS code?

I guess 200k is not that large when compared to images but since it is required to load before the page can be rendered, it is a little more important than images which load after.

This is all I’m using at the moment.

import { PropertyFieldPeoplePicker, PrincipalType } from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mikezimmcommented, May 19, 2021

@joelfmrodrigues , Yep I run gulp clean every time but thanks for the reminder.

@AJIXuMuK , Thanks for the answers to the questions!

0reactions
AJIXuMuKcommented, May 14, 2021

I’ll close the issue. Let us know @mikezimm if you need any additional help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

People Picker Limitation Problem - Microsoft Community Hub
I have a List with a Content Type that has a People Picker Field, allows multiple selections, Only People are selectable that has...
Read more >
Power Apps People Picker Delegation Workaround
Open Power Apps and create a new app from blank. Add a label to the top of the app with the text “I/T...
Read more >
PnP People Picker Control In SharePoint Framework
This control renders a People Picker field which can be used to select one or more users from a SharePoint group or site....
Read more >
Power Hour: Power Apps People Picker - YouTube
Demonstration of various ways to use a people picker. See how it is structured, make it show a different list of people to...
Read more >
Power Apps People Pickers: 3 WAYS - YouTube
3 Ways to Create a People Picker in Power AppsTimestamps:00:00 (~1 min) Intro00:53 (~6 min) 1. Using a SharePoint people field, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found