Merge pull request #14645 from Snuffleupagus/Node-DOMMatrix-polyfill

[api-minor] Remove the, in `legacy` builds, bundled `DOMMatrix` polyfill
This commit is contained in:
Tim van der Meij 2022-03-09 20:38:26 +01:00 committed by GitHub
commit e85bb0b599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -2043,6 +2043,7 @@ function packageBowerJson() {
bugs: DIST_BUGS_URL,
license: DIST_LICENSE,
dependencies: {
dommatrix: "^0.0.24",
"web-streams-polyfill": "^3.2.0",
},
peerDependencies: {

View File

@ -50,7 +50,9 @@ if (
if (globalThis.DOMMatrix || !isNodeJS) {
return;
}
globalThis.DOMMatrix = require("dommatrix/dist/dommatrix.js");
globalThis.DOMMatrix = __non_webpack_require__(
"dommatrix/dist/dommatrix.js"
);
})();
// Provides support for *recent* additions to the Promise specification,