This fork includes two simple changes:
- Export
index.d.ts
andbase.d.ts
files 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.js
file import tonull
inlib/jsdom/living/xhr/XMLHttpRequest-impl.js
. This is necessary for bundling this code withesbuild
for use in our AWS Lambda functions. Normally, a customesbuild
plugin could take care of this, but since AWS CDK executesesbuild
via the command line, we cannot use plugins.
See the jsdom
documentation here.