Skip to content

Commit

Permalink
docs: fix usage example for dynamicCompileOptions (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed May 9, 2024
1 parent 19a49f6 commit a7e17fd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,10 @@ A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patt
export default defineConfig({
plugins: [
svelte({
experimental: {
dynamicCompileOptions({ filename, compileOptions }) {
// Dynamically set hydration per Svelte file
if (compileWithHydratable(filename) && !compileOptions.hydratable) {
return { hydratable: true };
}
dynamicCompileOptions({ filename, compileOptions }) {
// Dynamically set hydration per Svelte file
if (compileWithHydratable(filename) && !compileOptions.hydratable) {
return { hydratable: true };
}
}
})
Expand Down

0 comments on commit a7e17fd

Please sign in to comment.