Skip to content

Commit a7e17fd

Browse files
authored
docs: fix usage example for dynamicCompileOptions (#899)
1 parent 19a49f6 commit a7e17fd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/config.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,10 @@ A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patt
239239
export default defineConfig({
240240
plugins: [
241241
svelte({
242-
experimental: {
243-
dynamicCompileOptions({ filename, compileOptions }) {
244-
// Dynamically set hydration per Svelte file
245-
if (compileWithHydratable(filename) && !compileOptions.hydratable) {
246-
return { hydratable: true };
247-
}
242+
dynamicCompileOptions({ filename, compileOptions }) {
243+
// Dynamically set hydration per Svelte file
244+
if (compileWithHydratable(filename) && !compileOptions.hydratable) {
245+
return { hydratable: true };
248246
}
249247
}
250248
})

0 commit comments

Comments
 (0)