Astros unset `import.meta.hot`, causes `defined multiple times`
I'm trying to integrate nanostores/i18n into Astro. Everything seems to work fine so far. Thank you for the great documentation!
When I'm developing the Astro project (running `astro dev`) I face the following warning, when a page is changed and reloaded:
```txt
I18n component index was defined multiple times. It could lead to cache issues. Try to move i18n definition from component’s render function.
```
The challenge is that Astro doesn't set `import.meta.hot` or `import.meta.webpackHot`:
https://github.com/nanostores/i18n/blob/0b79526b18592aef948520e97f7b80d3b10f2658/create-i18n/index.js#L66
Can we add `import.meta.env.DEV` to the or conditions?
关闭于 2025-07-22 16 条评论