chore: add react & styled-components to react macro, as most are implied.

This commit is contained in:
41666 2020-10-24 21:46:48 -04:00
parent ba558ecf91
commit e61f827645
42 changed files with 21 additions and 154 deletions

View file

@ -1,6 +1,13 @@
load("@npm//@bazel/typescript:index.bzl", "ts_library")
load("//hack/bazel:utils.bzl", "render_deps")
DEFAULT_DEPS = [
"react",
"styled-components",
"@types/react",
"@types/styled-components",
]
def react_library(name, deps = [], **kwargs):
ts_library(
name = name,
@ -15,6 +22,6 @@ def react_library(name, deps = [], **kwargs):
"*.stories.tsx",
]),
),
deps = render_deps(deps),
deps = render_deps(deps + DEFAULT_DEPS),
**kwargs
)