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
Other ES6 features work when not targeting ES6, but methods like String.prototype.startsWith produce compilation errors. My expectation was that ES6 features would work regardless of the target version, and it's not clear what the distinction between the string methods and other features is.
The text was updated successfully, but these errors were encountered:
Functional features are not polyfilled, it is (mainly) only language semantics that are supported when emitting to other targets. For example, Promises don't exist, though they are part of ES2015. You would need to polyfill them yourself or use a library like core.js to polyfill them for you.
Other ES6 features work when not targeting ES6, but methods like
String.prototype.startsWith
produce compilation errors. My expectation was that ES6 features would work regardless of the target version, and it's not clear what the distinction between the string methods and other features is.The text was updated successfully, but these errors were encountered: