But if I don't export it, I'm having the following error:
"import(\"styles\") should have been resolved BEFORE serialization".
What I have to do now to have it working is adding #export("otherStyles"): #endexport to all of my views, even if they don't have otherStyles.
Describe the solution you'd like
I would like that import to be empty, I don't always want to export additional styles, possible solutions are
a) #import("otherStyles") // Modify default behaviour to be optional or allow empty imports
b) #import("otherStyles", allowEmpty: true)
c) #import("otherStyles", "default")
Is your feature request related to a problem? Please describe. I have a
layout.leaf
looking like thisBut if I don't export it, I'm having the following error:
What I have to do now to have it working is adding
#export("otherStyles"): #endexport
to all of my views, even if they don't have otherStyles.Describe the solution you'd like I would like that import to be empty, I don't always want to export additional styles, possible solutions are
a
orc
would be perfect 👍