diff --git a/gulpfile.js b/gulpfile.js index dba20187a..149386447 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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: { diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index 24343a0cc..79385f2a8 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -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,