Skip to content

Commit e422feb

Browse files
authored
fix: Swaps declaration order to preserve region tag
This PR swaps the declaration order for advanced-markers-collision, to prevent the opening region tag from being stripped. If the region tag is positioned immediately before any item that TSC strips, it will also strip the region tag since it's just a comment.
1 parent 9249841 commit e422feb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • samples/advanced-markers-collision

samples/advanced-markers-collision/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66

77
// [START maps_advanced_markers_collision]
8+
const mapElement = document.querySelector('gmp-map')!;
9+
810
declare namespace mdc {
911
namespace select {
1012
class MDCSelect {
@@ -15,8 +17,6 @@ declare namespace mdc {
1517
}
1618
}
1719

18-
const mapElement = document.querySelector('gmp-map')!;
19-
2020
// Initialize and add the map
2121
async function init(): Promise<void> {
2222
// Request needed libraries.

0 commit comments

Comments
 (0)