-
-
Notifications
You must be signed in to change notification settings - Fork 81
Synchronise with svelte.config.js #144
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
Gut also says "no" to varying config files. That's always a headache – for user and toolmaker.
As part of (2), I think I would prefer this (as both user & toolmaker): svelte({
compilerOptions: require('../path/to/svelte.config.js')
}) |
We already need to deal with Line 164 in a765821
|
I don't find that one as problematic because |
Yep, that's what was discussed in Discord and communicated here, and plugins are in the process of switching to support that if they don't already I don't have a strong feeling one way or the other about auto-loading (and the two things can certainly happen independently), but worth noting that it wouldn't just be a case of this... svelte(require('../path/to/svelte.config.js')) ...because const { preprocess, compilerOptions } = require('../path/to/svelte.config.js');
// later...
svelte({
preprocess,
compilerOptions,
...anyOtherPluginOptions
}) The
That may be enough of a reason not to bother with it — as I say, I don't have a strong opinion |
I typo'd on my snippet, but ya, agreed there. I think we can punt on the autoload decision & let that be a 7.1.0, for example, once we/any of us feel more strongly about it. For now the question we have to answer now is whether or not |
Sounds good to me |
A question about importing the |
- show warning on presence of non-plugin option - Closes #144
ESM files can still |
Two parts to this:
compilerOptions
property, instead of just throwing top-level options at the compiler (we can detect unexpected top-level properties and warn accordingly, so while this will be a breaking change — which is fine, since we're about to release a major — it needn't be a confusing one)svelte.config.json
? my gut says no, keep it simple)The text was updated successfully, but these errors were encountered: