|
@@ -1098,13 +1098,13 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async processStylesheets() {
|
|
async processStylesheets() {
|
|
|
- await Promise.all(Array.from(this.stylesheets).map(([, stylesheetInfo]) =>
|
|
|
|
|
|
|
+ await Promise.all([...this.stylesheets].map(([, stylesheetInfo]) =>
|
|
|
ProcessorHelper.processStylesheet(stylesheetInfo.stylesheet.children, this.baseURI, this.options, this.cssVariables, this.batchRequest)
|
|
ProcessorHelper.processStylesheet(stylesheetInfo.stylesheet.children, this.baseURI, this.options, this.cssVariables, this.batchRequest)
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async processStyleAttributes() {
|
|
async processStyleAttributes() {
|
|
|
- return Promise.all(Array.from(this.styles).map(([, declarationList]) =>
|
|
|
|
|
|
|
+ return Promise.all([...this.styles].map(([, declarationList]) =>
|
|
|
ProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest)
|
|
ProcessorHelper.processStyle(declarationList.children.toArray(), this.baseURI, this.options, this.cssVariables, this.batchRequest)
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|