Synchronise with svelte.config.js
See original GitHub issueTwo parts to this:
- the plugin should accept a
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) - it should load a svelte.config.js if one exists. (do we allow config to come from other places, like
svelte.config.json
? my gut says no, keep it simple)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Configuration • Docs • SvelteKit
Your project's configuration lives in a svelte.config.js file at the root of your project. As well as SvelteKit, this config object is used...
Read more >Svelte reactive declarations and "tick" synch'ing - YouTube
Shows what reactive declarations (reactivity in JavaScript ) are in Svelte, how reactive updates are asynchronous, and how "await tick()" ...
Read more >Configuration Reference | Svelte CLI - GitHub Pages
svelte.config.js is an optional config file that will be automatically loaded by @svel/cli-service if it's present in your project root ...
Read more >Sveltekit Ultimate Tutorial Series #3 - StackBlitz
"package": "svelte-kit package",. "preview": "svelte-kit preview",. "//prepare": "svelte-kit sync", ... "eslint-config-prettier": "^8.3.0",.
Read more >annaghi/xstate-todo-mvc-svelte - CodeSandbox
annaghi / xstate-todo-mvc-svelte / main ... annaghi/xstate-todo-mvc-svelte. This Sandbox is in sync with main on GitHub. ... svelte.config.js. tsconfig.json.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ESM files can still
require
CommonJS files. It just doesn’t work the other way aroundA question about importing the
svelte.config.js
: right now this config has to be written in commonjs style because it’s loaded by the language server through a dynamic require. AFAIK you can write rollup configs using esm style. Is that a problem?