I'm building a javascript library and I'm using Rollup to create cjs, esm, and umd builds. Tests tell me that my cjs and esm builds look good. However, when I test my umd build I get an error and it looks like it's related to isomorphic-unfetch. Does any one have a working example of a umd build that uses isomorphic-unfetch that I might be able to look at?
Diego Bernal
Front-End Engineer
The solution was to list
isomorphic-unfetchas external for umd builds. The configuration looks something like this:external: ["isomorphic-unfetch"], ... ... output:{ // other output config globals:{ ["isomorphic-unfetch"]: "fetch" } }