Skip to content

fix(build): set commonjs option to false in rollup configuration #599

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

Closed
wants to merge 1 commit into from

Conversation

productdevbook
Copy link
Member

πŸ”— Linked issue

❓ 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)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Copy link

pkg-pr-new bot commented Apr 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/module-builder@599

commit: af70e08

@productdevbook productdevbook changed the title chore(build): set commonjs option to false in rollup configuration fix(build): set commonjs option to false in rollup configuration Apr 20, 2025
@danielroe
Copy link
Member

would you explain what problem this solves?

@productdevbook
Copy link
Member Author

productdevbook commented Apr 20, 2025

remove d.cts

@danielroe
Copy link
Member

Would you please provide a reproduction? πŸ™ .d.cts files are not emitted in the module playground in example/

@productdevbook
Copy link
Member Author

productdevbook commented Apr 21, 2025

this example, That's where the problem is. I've already tested it here

my node: v23.10.0

CleanShot 2025-04-21 at 06 24 39@2x

@danielroe
Copy link
Member

danielroe commented Apr 21, 2025

would you provide a runnable reproduction, such as stackblitz?

screenshots don't help pinpoint an issue

@productdevbook
Copy link
Member Author

productdevbook commented Apr 21, 2025

this same library, Am I writing it wrong, that's the problem :D, https://github.com/nuxt/module-builder/tree/main/example

@danielroe
Copy link
Member

@productdevbook
Copy link
Member Author

stack: node -v
v20.19.0

my v23.10.0

@danielroe
Copy link
Member

danielroe commented Apr 21, 2025

please provide a runnable reproduction or steps as to how to reproduce πŸ™

I have taken the trouble to create a stackblitz to investigate - try modifying it or updating the startCommand so it reproduces...

@productdevbook
Copy link
Member Author

Very interestingly, it's happening now. I've created the example several times since this morning.

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