Skip to content

Conversation

@romainpi
Copy link
Contributor

@romainpi romainpi commented Oct 26, 2025

Hello,

Correct me if I'm wrong, but shouldn't @swc/core be placed in devDependencies?

https://swc.rs/docs/getting-started#installation

@romainpi romainpi force-pushed the fix-misplaced-devdep branch from 38ef69a to 6895cc0 Compare October 26, 2025 17:47
@romainpi romainpi changed the title fix(create-payload-app): misplaced @swc/core dependency fix: misplaced @swc/core dependency in create-payload-app Oct 26, 2025
@romainpi romainpi force-pushed the fix-misplaced-devdep branch from 6895cc0 to dfc49c6 Compare October 26, 2025 17:49
`@swc/core` should be placed in `devDependencies`
See: https://swc.rs/docs/getting-started#installation
@romainpi romainpi force-pushed the fix-misplaced-devdep branch from f726dc9 to 71540e7 Compare October 27, 2025 16:18
@AlessioGr
Copy link
Member

We need swc installed to parse through the AST of your next config, thus it needs to be in dependencies.

@AlessioGr AlessioGr closed this Oct 30, 2025
@romainpi
Copy link
Contributor Author

@AlessioGr those are only type imports, only required by the ts compiler, not required by the js runtime!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants