Skip to content

UMD bundles include arcgis-rest-js dependencies #487

Description

@tomwayson

If you search the UMD bundle for "queryFeatures" you'll see the source for that function (as well as the source decodeValues() and request(), etc. This is despite the fact that it's marked as external:

external: [
'@esri/arcgis-rest-feature-service'
],

What makes this worse is that package.main points the the UMD build:

"main": "dist/umd/cedar.js",

Originally the thinking was that we didn't want to bother making a CJS build and node could just load the UMD bundle, but now bundlers like webpack that prefer main over module will use this UMD bundle by default.

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