diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/resources/resources.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go index 04af756ef..34b4464be 100644 --- a/tpl/resources/resources.go +++ b/tpl/resources/resources.go @@ -369,7 +369,7 @@ func (ns *Namespace) ToCSS(args ...any) (resource.Resource, error) { } if m != nil { - if t, found := maps.LookupEqualFold(m, "transpiler"); found { + if t, _, found := maps.LookupEqualFold(m, "transpiler"); found { switch t { case transpilerDart, transpilerLibSass: transpiler = cast.ToString(t) @@ -440,7 +440,6 @@ func (ns *Namespace) Babel(args ...any) (resource.Resource, error) { var options babel.Options if m != nil { options, err = babel.DecodeOptions(m) - if err != nil { return nil, err } |