mlogclub / bbs-go

基于Golang的开源社区系统。简洁对话,高效互动,社区新体验!
https://bbs-go.com
GNU General Public License v3.0
2.89k stars 601 forks source link

fix: opt in to `import.meta.*` properties #234

Closed danielroe closed 5 months ago

danielroe commented 5 months ago

This is a very early PR to make this app compatible with changes we expect to release in Nuxt v5.

In Nuxt v3.7.0 we added support for import.meta.* (see original PR) and we've been gradually updating docs and moving across from the old process.* patterned variables.

As I'm sure you're aware, these variables are replaced at build-time and enable tree-shaking in bundled code. This change affects runtime code (that is, that is processed by the Nuxt bundler, like vite or webpack) rather than code running in Node. So it really doesn't matter what the string is, but it makes more sense in an ESM-world to use import.meta rather than process.