You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Config files need to be written in node-commonjs-style (no import ... or export const ... syntax) because we use require inside our extension to dynamically load dependencies. This is confusing to users and not obvious.
Describe the solution you'd like
Change the setup so that ESM syntax is supported.
b) move svelte-preprocess-call out of Document and into the start of the application. This would be a breaking change as you now can only have one top-level svelte.config.js and not multiple at different levels - but I doubt this will break anyone, and it would also align more with the semantics of other config files (only one per project).
Is your feature request related to a problem? Please describe.
Config files need to be written in node-commonjs-style (no
import ...orexport const ...syntax) because we userequireinside our extension to dynamically load dependencies. This is confusing to users and not obvious.Describe the solution you'd like
Change the setup so that ESM syntax is supported.
await import(...);syntax, which is problematic becausesvelte-preprocessis looked up insideDocumentcreation. That can't be made asynchronous because it's used inside the TS LS (same problem as for Bug: DocumentSnapshot.ts is not passing preprocessed markup to svelte2tsx #339 ).svelte-preprocess-call out ofDocumentand into the start of the application. This would be a breaking change as you now can only have one top-levelsvelte.config.jsand not multiple at different levels - but I doubt this will break anyone, and it would also align more with the semantics of other config files (only one per project).Help and other ideas highly appreciated