-
-
Notifications
You must be signed in to change notification settings - Fork 114
Better documentation for config options #146
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
Comments
for example this kit issue sveltejs/kit#2253 where onwarn wasn't known |
@bluwy said that right now the options are in the global namespace (sveltejs/kit#2267 (comment)). I think options should probably be under a key like |
agreed, |
Yeah putting stuff in I think before we start making a breaking change to move these options to PS: IIRC Parcel has its own config loading system (for auto server reload), might need to take into account of that. |
Yeah, I was wondering if they should be under a @snowpack/plugin-svelte seems to look for them currently in the top-level as does parcel-plugin-svelte For webpack, Vite has All the bundler plugins seem to use However, some of the keys are specific to a particular tool. E.g. |
A generic key like But re common keys, Re snowpack input, yeah it makes sense to rename that to |
Actually, snowpack is pretty weird. It's called I think the problem with having a generic key like
That's not a bad idea. We can do it even without shared options |
I think keys split between We might also need to take into account of |
would it be better to create an RFC for it? This affects many packages in the svelte-sphere and we also should look at how everyone can introduce/migrate to that in a user-friendly (non-breaking?) way. Other things to note: at least kit also reads "extensions" in the root of config. https://github.com/sveltejs/kit/blob/b77201613c62d9afabf9c4135d6f18336ce9409a/packages/kit/src/core/config/options.js#L13 preprocess and compilerOptions as shared options make sense as they directly affect compiler output and this is essential for all involved. I think keeping them in root would cause less work for implementation and adoption. |
Yeah. I think this should be an RFC to gather more feedback from other bundler/framework maintainers as well. Would be nice to ping them too. |
RFC makes sense. It might be good to discuss at a maintainer's meeting first since there's been a number of options discussed to see which are the most popular / unpopular |
Describe the problem
Currently it only links to
options.ts
for details and while there are jsdoc comments on the interface, this is not really discoverable, leading to users not learning about them when they might need em.Describe the proposed solution
Proper documentation for all options, with examples/explaination of how they work in practice.
Alternatives considered
keep status quo
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: