Open ZhengRui opened 1 year ago
Hi @ZhengRui, thanks for reporting this!
What versions of rollup-plugin-preserve-directives
and rollup
are you on, and if possible, could you try the latest versions? (Or latest 2.X version for Rollup if you're still on v2)
Hi @Ephem ,I am using rollup 3.9.0 and rollup-plugin-preserve-directives 0.2.0.
const preserveDirectives = require("rollup-plugin-preserve-directives").default; solves it for now
You can use
import { default as preserveDirectives } from "rollup-plugin-preserve-directives";
// ...
preserveDirectives(),
Hello, this is still an issue, could you look into it when you have some time please ? @Ephem
Otherwise, thanks a lot of this plugin, it's doing wonders <3
"vite": "^5.1.0",
"rollup-plugin-preserve-directives": "^0.4.0",
import { preserveDirectives } from "rollup-plugin-preserve-directives"
works fine, no need for import { default as preserveDirectives }
I was just going through some old issues and came across this. Is this still an issue @sshmaxime, or did the above solve it for you?
I am facing this issue right now, not sure how to fix it. Here is my rollup.config.js