Replies: 1 comment 2 replies
-
did you fix it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am struggling to make Vite preserve "use client" directives in individual modules in bundle.
I use rollup-plugin-preserve-directives and
preserveModules: true,
+minify: false,
(as suggested here rollup/rollup#4699) in vite.config.ts but the directives are still missing in the final dist files. The rollup-plugin-preserve-directives is working fine, when used in pure Rollup, so I expect the problem to be with some other Vite code.Could you suggest some solution, please ?
I have the following configuration, which I believe is pretty standard one:
I use Vite 4.3.5. The source files are written in Typescript.
Thank you for answers
Beta Was this translation helpful? Give feedback.
All reactions