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
Does the Bud API allow passing Svelte compile options (e.g.{css: 'external', hydratable: true})?
I'm trying to run the compiler directly like: DOM, _ := svelteCompiler.DOM(layoutPath, componentBytes) but wasn't sure if the options were configurable.
I imagine the componentBytes are just getting passed to svelte.compile() in V8, so my initial thought was I would just be able to append a custom options object, but for svelteCompiler.SSR you must already setting an option of {generate: 'ssr'} somewhere?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Does the Bud API allow passing Svelte compile options (e.g.
{css: 'external', hydratable: true}
)?I'm trying to run the compiler directly like:
DOM, _ := svelteCompiler.DOM(layoutPath, componentBytes)
but wasn't sure if the options were configurable.I imagine the
componentBytes
are just getting passed tosvelte.compile()
in V8, so my initial thought was I would just be able to append a custom options object, but forsvelteCompiler.SSR
you must already setting an option of{generate: 'ssr'}
somewhere?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions