oracle / graaljs

GraalJS – A high-performance, ECMAScript compliant, and embeddable JavaScript runtime for Java
https://www.graalvm.org/javascript/
Universal Permissive License v1.0
1.82k stars 191 forks source link

Build-time flag to exclude Icu4j #864

Open aeriksson opened 3 weeks ago

aeriksson commented 3 weeks ago

When compiling JVM polyglot projects that include GraalJS using native-image, a somewhat large chunk (~8MB) of the resulting binary comes from Icu4j.

This mostly consists of locale-specific data, and is mostly/exclusively used for the JS Intl. API. Since support for this API can be disabled, it'd be great if there was a corresponding flag to exclude Icu4j from the build.