bazel/rules/swc.bzl
def swc_compile(name, swcrc, **kwargs):
    """Wrapper macro around the swc cli to compile a folder

    Args:
        name: name
        swcrc: swcrc
        **kwargs: **kwargs
    """
    args = kwargs.pop("args", [])
    args = [
        "--no-swcrc",
        "--source-maps",
        "--config-file",
        "%s/$(execpath %s)" % (path_to_workspace_root(), swcrc),
        "--out-dir",
        "%s/$(@D)" % path_to_workspace_root(),
    ] + args
    data = kwargs.pop("data", [])
    data.append(swcrc)

    _swc(
        name = name,
        args = args,
        chdir = native.package_name(),
        data = data,
        output_dir = True,
        **kwargs
    )
Wrapper macro around the swc cli to compile a folder

    Args:
        name: name
        swcrc: swcrc
        **kwargs: **kwargs
    
Wrapper macro around the swc cli to compile a folder
Wrapper macro around the swc cli to compile a folder
def swc_compile(name, swcrc, **kwargs):
    args = kwargs.pop("args", [])
    args = [
        "--no-swcrc",
        "--source-maps",
        "--config-file",
        "%s/$(execpath %s)" % (path_to_workspace_root(), swcrc),
        "--out-dir",
        "%s/$(@D)" % path_to_workspace_root(),
    ] + args
    data = kwargs.pop("data", [])
    data.append(swcrc)
    _swc(
        name = name,
        args = args,
        chdir = native.package_name(),
        data = data,
        output_dir = True,
        **kwargs
    )
def swc_compile ( name , swcrc , ** kwargs ) : args = kwargs . pop ( "args" , [ ] ) args = [ "--no-swcrc" , "--source-maps" , "--config-file" , "%s/$(execpath %s)" % ( path_to_workspace_root ( ) , swcrc ) , "--out-dir" , "%s/$(@D)" % path_to_workspace_root ( ) , ] + args data = kwargs . pop ( "data" , [ ] ) data . append ( swcrc ) _swc ( name = name , args = args , chdir = native . package_name ( ) , data = data , output_dir = True , ** kwargs )
Wrapper macro around the swc cli to compile a folder
Wrapper macro around the swc cli to compile a folder
"""Wrapper macro around the swc cli to compile a folder

    Args:
        name: name
        swcrc: swcrc
        **kwargs: **kwargs
    """
name
None
swcrc
None
**kwargs
None