aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/tf_globals/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/tensorboard/components/tf_globals/BUILD')
-rw-r--r--tensorflow/tensorboard/components/tf_globals/BUILD44
1 files changed, 8 insertions, 36 deletions
diff --git a/tensorflow/tensorboard/components/tf_globals/BUILD b/tensorflow/tensorboard/components/tf_globals/BUILD
index ca59c2fb93..0ffefd7968 100644
--- a/tensorflow/tensorboard/components/tf_globals/BUILD
+++ b/tensorflow/tensorboard/components/tf_globals/BUILD
@@ -1,29 +1,23 @@
package(default_visibility = ["//tensorflow:internal"])
-load("@io_bazel_rules_closure//closure:defs.bzl", "web_library")
-load("//tensorflow/tensorboard:hacks.bzl", "tensorboard_typescript_bundle")
-load("//tensorflow/tensorboard:defs.bzl", "tensorboard_typescript_genrule")
+load("//tensorflow/tensorboard:defs.bzl", "tensorboard_webcomponent_library")
+load("//tensorflow/tensorboard:web.bzl", "ts_web_library")
licenses(["notice"]) # Apache 2.0
-web_library(
+ts_web_library(
name = "tf_globals",
srcs = [
- "bundle.js",
+ "globals.ts",
"tf-globals.html",
],
path = "/tf-globals",
)
-tensorboard_typescript_genrule(
- name = "ts",
- srcs = ["bundle.ts"],
-)
-
-tensorboard_typescript_bundle(
- name = "bundle",
- out = "bundle.ts",
- namespace_srcs = {"TF.Globals": ["globals.ts"]},
+tensorboard_webcomponent_library(
+ name = "legacy",
+ srcs = [":tf_globals"],
+ destdir = "tf-globals",
)
filegroup(
@@ -31,25 +25,3 @@ filegroup(
srcs = glob(["**"]),
tags = ["notsan"],
)
-
-################################################################################
-# MARKED FOR DELETION
-
-load("//tensorflow/tensorboard:defs.bzl", "tensorboard_ts_library")
-load("//tensorflow/tensorboard:defs.bzl", "tensorboard_webcomponent_library")
-
-tensorboard_webcomponent_library(
- name = "legacy",
- srcs = [
- "tf-globals.html",
- ":legacy_ts",
- ],
- destdir = "tf-globals",
-)
-
-tensorboard_ts_library(
- name = "legacy_ts",
- srcs = ["globals.ts"],
- deps_mgmt = "off",
- runtime = "nodejs",
-)