Skip to content

fix: opt in to import.meta.* properties#5

Open
danielroe wants to merge 1 commit intomainfrom
process-client
Open

fix: opt in to import.meta.* properties#5
danielroe wants to merge 1 commit intomainfrom
process-client

Conversation

@danielroe
Copy link
Copy Markdown
Collaborator

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.)

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2024

Deploy Preview for vunix-playground failed.

Name Link
🔨 Latest commit f9534db
🔍 Latest deploy log https://app.netlify.com/sites/vunix-playground/deploys/6601a71a1d11fa0007effdc5

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2024

Deploy Preview for vunix-vue-example ready!

Name Link
🔨 Latest commit f9534db
🔍 Latest deploy log https://app.netlify.com/sites/vunix-vue-example/deploys/6601a71ac1392900084c91e1
😎 Deploy Preview https://deploy-preview-5--vunix-vue-example.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
Copy link
Copy Markdown

netlify bot commented Mar 25, 2024

Deploy Preview for vunix-nuxt-example ready!

Name Link
🔨 Latest commit f9534db
🔍 Latest deploy log https://app.netlify.com/sites/vunix-nuxt-example/deploys/6601a71a63de480008726704
😎 Deploy Preview https://deploy-preview-5--vunix-nuxt-example.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.

@gaetansenn
Copy link
Copy Markdown
Owner

Hello @danielroe at the moment I'm not working on this library anymore since Nuxt UI is now public.
I'm more planing to help Benjamin Canac if I can find time. Thank you so much for the PR anyway :)

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2024

Deploy Preview for vunix ready!

Name Link
🔨 Latest commit f9534db
🔍 Latest deploy log https://app.netlify.com/sites/vunix/deploys/6601a71aae39a700089fc518
😎 Deploy Preview https://deploy-preview-5--vunix.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.

@danielroe
Copy link
Copy Markdown
Collaborator Author

Of course! Feel free to close 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants