Files
react-native/packages/polyfills/BUCK
T
Moti Zilberman 4fcf468131 Co-locate Buck targets for JS polyfills with their sources
Summary: Changelog: [Internal]

Reviewed By: GijsWeterings

Differential Revision: D30032230

fbshipit-source-id: 0d714b4e0a79a9c5c1c21e79f782635d8bd9c5f1
2021-08-03 00:47:30 -07:00

33 lines
940 B
Python

load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
load("@fbsource//xplat/js:JS_DEFS.bzl", "relative_path_to_js_root", "rn_library")
yarn_workspace(
name = "yarn-workspace",
srcs = glob(
[
"**/*.js",
"**/*.json",
],
exclude = [
"**/__fixtures__/**",
"**/__flowtests__/**",
"**/__mocks__/**",
"**/__tests__/**",
"**/node_modules/**",
"**/node_modules/.bin/**",
],
),
visibility = ["PUBLIC"],
)
rn_library(
name = "polyfills",
base_path = relative_path_to_js_root() + "node_modules/@react-native/polyfills/",
is_polyfill = True,
labels = ["supermodule:xplat/default/public.react_native.core"],
node_modules_check_enabled = False,
skip_processors = True, # Don't anticipate routes or fbicon here
visibility = ["PUBLIC"],
deps = [],
)