[SalesForce] Is it possible to disable Locker Service for Lightning Web Components? (I mean LWC and not Aura Components!)

Is it possible to disable Locker Service for Lightning Web Components? For Aura Components it goes like this:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_ls_disable.htm

This works for Aura Components very well and as expected.

Now, how can we disable the Locker Service for a LWC?

Best Answer

In LWC, Lightning Locker is always enabled to enforce code isolation.

https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.security_locker_service

Are you facing an issue with Locker? We monitor these forums and try to address the concerns as they come up.