Skip to content

TypeScript declarations outputted to src folder, is this as expected? #291

Answered by joeldenning
PieterBoeren asked this question in Q&A
Discussion options

You must be logged in to vote

The benefit of it being in the user's project is that they can modify it without forking / patching webpack-config-single-spa-ts, which can be quite nice. One of the design goals of create-single-spa was to try to make it easier to modify configuration without the hassle of ejection or some kind of tool similar to react-app-rewired or craco. So with that in mind it makes sense to keep the file in the user's project.

The downside is exactly what you pointed out, though, of the files not being automatically maintained / updated.

So it's just a tradeoff - hard to say which one is better than the other.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PieterBoeren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants