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.
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:cedar/packages/cedar/profiles/base.js
Lines 22 to 24 in b4e7069
What makes this worse is that
package.mainpoints the the UMD build:cedar/packages/cedar/package.json
Line 8 in b4e7069
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
mainovermodulewill use this UMD bundle by default.