When using #reveal-code with #enable-handout-mode(true) does not seem to work. The slides are still duplicated to reveal the code.
#import "@preview/polylux:0.4.0": *
#enable-handout-mode(true)
#slide[
#reveal-code(lines:(1,2,3))[
```
line 1
line 2
line 3
```
]
]
I am using typst 0.14.0 and polylux 0.4.0.
test.pdf