Skip to content

Support for exports in package.json #903

Open
@sgammon

Description

@sgammon

Many packages, including react, use the exports property to define a formal module export surface.

However, GraalJs currently bails eagerly under such circumstances:

PackageJson pjson = readPackageJson(packageUrl, env);
// 11.5 If pjson is not null and pjson.exports is not null or undefined, then
if (pjson != null && pjson.hasExportsProperty()) {
throw fail(UNSUPPORTED_PACKAGE_EXPORTS, packageSpecifier);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions