This PR updates and formalizes the web browser requirements for iTowns.
See proposal #2256.
Motivation and Context
We are currently using babel's preset-env plugin to decide which syntax transforms and polyfills are used during the transpilation step. However, we do not set an output target in its configuration which causes
Babel [to] assume you are targeting the oldest browsers possible [...] @babel/preset-env will transform all ES2015-ES2020 code to be ES5 compatible.
Source
This PR aims to:
formalize which browsers and versions are supported by iTowns (defaults target as decided by the linked proposal which supports webgl2).
reduce the transpiled code size by supporting more recent browsers
Removing unnecessary polyfills for modules well-supported by our target is the object of the follow-up PR #2248
Description
This PR updates and formalizes the web browser requirements for iTowns. See proposal #2256.
Motivation and Context
We are currently using babel's preset-env plugin to decide which syntax transforms and polyfills are used during the transpilation step. However, we do not set an output target in its configuration which causes
This PR aims to:
Removing unnecessary polyfills for modules well-supported by our target is the object of the follow-up PR #2248