Skip to content

The variable font code uses Proxy, a non-polyfillable ES6 type. #716

Open
@ILOVEPIE

Description

@ILOVEPIE

The variable font code uses Proxy, a non-polyfillable ES6 type, preventing opentype.js from being transpiled to anything lower than ES6.

Expected Behavior

In order to implement a legacy/compatibility build this code must be reworked slightly to remove the dependence on Proxy.

Current Behavior

While most JavaScript features can be polyfilled for older browsers, proxy is one of the few that cannot. Even SWC and Closure Compiler cannot polyfill this feature.

Possible Solution

Don't use Proxy, it doesn't add any significant amount of code to avoid it.

Context

This is blocking #693

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions