This fork includes two simple changes:
- Export
index.d.tsandbase.d.tsfiles with type information copied from@types/jsdom. This allows the library to be used with TypeScript projects without them complaining about a lack of a types file. - Set the
xhr-sync-worker.jsfile import tonullinlib/jsdom/living/xhr/XMLHttpRequest-impl.js. This is necessary for bundling this code withesbuildfor use in our AWS Lambda functions. Normally, a customesbuildplugin could take care of this, but since AWS CDK executesesbuildvia the command line, we cannot use plugins.
See the jsdom documentation here.