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:
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.
If you search the UMD bundle for "queryFeatures" you'll see the source for that function (as well as the source
decodeValues()
andrequest()
, etc. This is despite the fact that it's marked as external:https://github.com/Esri/cedar/blob/b4e7069383c0b8789f7024c96878e9038fbd13d8/packages/cedar/profiles/base.js#L22-L24
What makes this worse is that
package.main
points the the UMD build:https://github.com/Esri/cedar/blob/b4e7069383c0b8789f7024c96878e9038fbd13d8/packages/cedar/package.json#L8
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
overmodule
will use this UMD bundle by default.