apollo icon indicating copy to clipboard operation
apollo copied to clipboard

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

Open danielroe opened this issue 1 year ago • 1 comments

This is a very early PR to make this module 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.

(It might be worth updating the module compatibility as well to indicate it needs to have Nuxt v3.7.0+, but I'll leave that with you if you think this is a good approach.)

danielroe avatar Mar 25 '24 12:03 danielroe

Deploy Preview for apollo-module ready!

Name Link
Latest commit e8c89e42081df094638f895088fec8470543bb6d
Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/660174b07934930008cb9d9b
Deploy Preview https://deploy-preview-605--apollo-module.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Mar 25 '24 12:03 netlify[bot]