0

we are using private module (equivalent to dll) for logging the issue in SPFx to list. i am not sure if the private module is been downloaded multiple time or one time on the modern page.

we are using the same private module in different web part on the page. Please let me know how does module load at run time.

2
  • the question is not clear to me :) , what do you mean by module ? can you please clarify what you are trying to achieve and what is the exact issue that you are facing ? Commented Aug 14, 2018 at 9:02
  • Hi Gautam, thanks you for your comment. we build a solution (package) for logging the issues and warning to a list. and we use npm link to share that solution(node moule shared) across the project. we are using the same logging module in many web parts on the SharePoint page. since we refer the same shared module , i am wondering if this loaded once or multiple time on the page?
    – Veera mani
    Commented Aug 14, 2018 at 11:04

1 Answer 1

0

You could use developer tool to monitor loaded js file, for example:

enter image description here

If you just defined some 'common' module, I think it will be compile into the bundle, while if you referenced external js library, you could control whether compile into bundle or not. Check official guideline.

1
  • Hi Lee, thanks for your response. I did notice about bundle. and i am using webpack bundle analyser to check. however, that is really not proving if the module loaded once or multiple time.
    – Veera mani
    Commented Aug 15, 2018 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.