I have an lwc component to display charts using
chartjslibrary in the community.
The component was working perfectly in internal salesforce but the chartjs library failed to load in the community.
After disabling this setting the component loads perfectly.
However, I noticed that there is no setting for this in
experience bundle JSON(or at least
sfdx force:source:pullcommand doesn’t detect it), and every time in a new org I have to manually disable this setting.
I am using community with this template:
Build Your Own (LWR)
Is there a different way to disable this setting without manual effort?
Also shouldn’t this setting block lwc from different namespace instead of blocking all static resources js files even from the same namespace(strangely it allows CSS files from static resource to load)