Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nuxt): give plugins .mjs extension so they're processed #1479

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jan 2, 2024

nuxt/nuxt#24733 is caused by Nuxt not treating .ejs files as JavaScript (and therefore not running certain build plugins on the code within them).

We might be able to handle this transparently within Nuxt as well but this PR fixes it in a backwards-compatible way.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e0410e5) 74.64% compared to head (3bfb4d3) 74.64%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1479   +/-   ##
=======================================
  Coverage   74.64%   74.64%           
=======================================
  Files          28       28           
  Lines        3849     3849           
  Branches      264      264           
=======================================
  Hits         2873     2873           
  Misses        976      976           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks a lot Daniel 🙏

@posva posva merged commit e51ab1a into vuejs:main Jan 3, 2024
5 checks passed
@danielroe danielroe deleted the fix/nuxt-plugin-extension branch January 3, 2024 09:09
@posva
Copy link
Member

posva commented Jan 3, 2024

This ends up breaking in the playground as if the initializeAuth() function gets called too much. I will see if I can pinpoint and fix the problem, if not, I will revert this for the time being.

@posva
Copy link
Member

posva commented Jan 3, 2024

It was just missing the .client in the name too 😄 4514650

@danielroe
Copy link
Member Author

oops - sorry! 😬

Copy link
Member

posva commented Jan 3, 2024

No worries

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.

3 participants