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

build: do not emit .mjs in runtime directory #2514

Merged
merged 1 commit into from Jan 19, 2024
Merged

build: do not emit .mjs in runtime directory #2514

merged 1 commit into from Jan 19, 2024

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves #2512

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

We probably need to fix this in nuxt/module-builder, but adding the new entrypoint didn't overwrite existing one, so both .js and .mjs files were being created.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

Deploying with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: f87d44c
Status:Β βœ…Β  Deploy successful!
Preview URL: https://1c800e20.nuxt-content-1il.pages.dev
Branch Preview URL: https://build-mjs.nuxt-content-1il.pages.dev

View logs

@danielroe danielroe marked this pull request as ready for review January 19, 2024 12:01
@farnabaz
Copy link
Member

Thanks @danielroe
What about module file? Why not removing mjs and cjs and just create .js extension?

@danielroe
Copy link
Member Author

I'd be very happy with that as well, but it shouldn't be linked to the bug and I wanted to keep the surface area of the change limited.

@farnabaz farnabaz merged commit 945882a into main Jan 19, 2024
3 checks passed
@farnabaz farnabaz deleted the build/mjs branch January 19, 2024 12:50
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.

module loads both js and mjs files in client
2 participants