build(docs-infra): fix StackblitzBuilder
after jsdom
update (#41725)
In commit c617f1f768bd968e95dd1147293a5a18df3bc770, `jsdom` was updated from v9 to v16. This includes a breaking change that caused `StackblitzBuilder` to fail to generate the StackBlitz examples. However, this failure went unnoticed, because `StackblitzBuilder` still completed successfully after failing to generate the examples. (This has been fixed in the previous commit.) This commit updates `StackblitzBuilder` to use the new `jsdom` API. PR Close #41725
This commit is contained in:
parent
5a80bc6eb5
commit
122c8ba0e3
@ -254,7 +254,7 @@ class StackblitzBuilder {
|
||||
|
||||
_createStackblitzHtml(config, postData) {
|
||||
const baseHtml = this._createBaseStackblitzHtml(config);
|
||||
const doc = jsdom.jsdom(baseHtml);
|
||||
const doc = new jsdom.JSDOM(baseHtml).window.document;
|
||||
const form = doc.querySelector('form');
|
||||
|
||||
for(const [key, value] of Object.entries(postData)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user