Skip to content

Commit

Permalink
Merge pull request #1228 from customautosys/master
Browse files Browse the repository at this point in the history
fix tsx type file import when using a React / Vue build step (thanks @customautosys)
  • Loading branch information
obiot committed May 16, 2024
2 parents 56fa7cf + 95eb9b7 commit 276199e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/loader/parsers/tmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,8 @@ export function preloadTMX(tmxData, onload, onerror, settings) {
const xmlDoc = parser.parseFromString(response, "text/xml");
const data = TMXUtils.parse(xmlDoc);

switch (fileUtil.getExtension(tmxData.src)) {
case "tmx":
result = data.map;
break;
result = data.map || data.tilesets[0] || data;

case "tsx":
result = data.tilesets[0];
break;
}
break;
}
case "json":
Expand Down

0 comments on commit 276199e

Please sign in to comment.