You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When the keepNames option is enabled, the generated code includes the following snippet:
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
However, this code is not compatible with older browsers like Chrome 38 or Safari 9, as the "name" property is protected and returns the following error:
Attempting to change configurable attribute of unconfigurable property
After testing, I found that manually replacing "name" with another string (e.g., "propertyName") resolves the issue.
Would it be possible to replace "name" with a different string?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
When the keepNames option is enabled, the generated code includes the following snippet:
However, this code is not compatible with older browsers like Chrome 38 or Safari 9, as the "name" property is protected and returns the following error:
Attempting to change configurable attribute of unconfigurable property
After testing, I found that manually replacing "name" with another string (e.g., "propertyName") resolves the issue.
Would it be possible to replace "name" with a different string?
Thank you!
The text was updated successfully, but these errors were encountered: