[JS API] .set("imports", [])
overrides internally required imports
option
#2585
Labels
.set("imports", [])
overrides internally required imports
option
#2585
Greetings,
Obsevations
As I coined in Vite project (vitejs/vite#2857), compiling stylus source with the following code will raise an error because
.set
completely overrides stylus option that are required for correct compilation, such asimports: ['node_modules/stylus/lib/functions/index.styl']
:What is expected
ref.set(...)
should merge options properly.Workarounds are still possible (that is to say, pass options directly to
const ref = stylus(source, options)
, but I had to mention this buggy behgaviour.Best regards,
The text was updated successfully, but these errors were encountered: