From f216ccb0099ac4f43a0bfac52929da47c38f2d33 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Mon, 29 Apr 2024 21:15:09 -0500 Subject: [PATCH] fix: jsdom bundling --- package-lock.json | 48 ++--------------------------------------------- package.json | 5 ++++- webpack.config.js | 9 +++++---- 3 files changed, 11 insertions(+), 51 deletions(-) diff --git a/package-lock.json b/package-lock.json index b7e98c78..651ddec0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@excaliburjs/plugin-tiled", - "version": "0.29.0", + "version": "0.29.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@excaliburjs/plugin-tiled", - "version": "0.29.0", + "version": "0.29.2", "license": "BSD-2-Clause", "dependencies": { "compare-versions": "6.1.0", @@ -2583,20 +2583,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -4553,20 +4539,6 @@ "node": ">=16" } }, - "node_modules/playwright/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/portfinder": { "version": "1.0.32", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz", @@ -8800,13 +8772,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, "function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -10231,15 +10196,6 @@ "requires": { "fsevents": "2.3.2", "playwright-core": "1.41.2" - }, - "dependencies": { - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - } } }, "playwright-core": { diff --git a/package.json b/package.json index bbbcf1aa..3f9adae7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@excaliburjs/plugin-tiled", - "version": "0.29.0", + "version": "0.29.2", "description": "excalibur-tiled provides Tiled map editor integration with Excalibur.js", "main": "dist/excalibur-tiled.min.js", "typings": "dist/src/index.d.ts", @@ -81,6 +81,9 @@ "optionalDependencies": { "jsdom": "^23.2.0" }, + "browser": { + "jsdom": false + }, "overrides": { "webpack-dev-server": { "webpack-dev-middleware": "7.0.0" diff --git a/webpack.config.js b/webpack.config.js index b1959e03..1afc93f4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,10 +50,11 @@ module.exports = { root: "ex" }, "jsdom": { - commonjs: "JSDOM", - commonjs2: "JSDOM", - amd: "JSDOM", - root: "JSDOM" + commonjs: "jsdom", + commonjs2: "jsdom", + amd: "jsdom", + umd: "jsdom", + root: "jsdom" } }, plugins: [