question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Synchronise with svelte.config.js

See original GitHub issue

Two 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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lukeedcommented, Oct 22, 2020

ESM files can still require CommonJS files. It just doesn’t work the other way around

0reactions
dummdidummcommented, Oct 22, 2020

A 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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found