diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-30 11:46:35 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-30 11:46:35 +0800 |
| commit | cba9e807dd39f3c03a66c554c092b0b2c094ba38 (patch) | |
| tree | 7c864926cb4628f32202d8dc15ee2ee004468cff /scripts | |
| parent | 70e8ced5ed692a289e7b9d898839fb926b16d6a0 (diff) | |
refactor: use globalThis to hold methods
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rollup.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 434bd85..547260b 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js | |||
| @@ -96,8 +96,8 @@ export default [ | |||
| 96 | return { | 96 | return { |
| 97 | code: [ | 97 | code: [ |
| 98 | transformedCode, | 98 | transformedCode, |
| 99 | 'window.generateMaps = generateMaps', | 99 | 'globalThis.generateMaps = generateMaps', |
| 100 | 'window.mapclay = mapclay', | 100 | 'globalThis.mapclay = mapclay', |
| 101 | ].join('\n'), | 101 | ].join('\n'), |
| 102 | } | 102 | } |
| 103 | } | 103 | } |