Skip to content

Commit

Permalink
Issue #34: Defaulting "attributes: true" in autoDefine(), as this is …
Browse files Browse the repository at this point in the history
…a major use case for it.
  • Loading branch information
patricknelson committed Dec 6, 2023
1 parent 38f00cf commit 643ea7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion demo/vercel/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ autoDefine(import.meta.glob('./**/*.svelte', { eager: true }), {
}, () => {
// Extend with additional options, if desired.
return {
attributes: true,
debugMode,
hydratable,
shadow,
Expand Down Expand Up @@ -77,6 +76,11 @@ async function autoDefine(modules, {
svelteRetag({
component,
tagname,

// Default to true, since this is likely to vary on a per-component basis. You can override this in the callback.
attributes: true,

// Merge customized options.
...options,
});
}
Expand Down

0 comments on commit 643ea7c

Please sign in to comment.