Enable and Disable LWS in Scratch Orgs
New orgs have LWS for Lightning web components and Aura components enabled by default. New scratch orgs also have LWS enabled.
You can use scratch org definition files to enable and disable LWS in your scratch orgs. The boolean lockerServiceNext
enables and disables LWS, not Lightning Locker. For example, add these lines to the definition file to disable LWS in your scratch org.
Disabling LWS returns your scratch org to use Lightning Locker for Lightning web components and Aura components.
See Also