e9de28111d
Enables the `service-worker` tests on Saucelabs and fixes some issues that were preventing them from running on IE. The issues were: 1. We were serving es2017 code during tests. I've set it to es5. 2. The check which was verifying whether the environment is supported ended up hitting a `require` call in the browser which caused it to fail on browsers that don't support the `URL` API. PR Close #36129
32 lines
530 B
Python
32 lines
530 B
Python
load("//tools:defaults.bzl", "ng_rollup_bundle", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "worker",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
exclude = [
|
|
"main.ts",
|
|
],
|
|
),
|
|
deps = ["@npm//@types/node"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "main",
|
|
srcs = ["main.ts"],
|
|
deps = [":worker"],
|
|
)
|
|
|
|
ng_rollup_bundle(
|
|
name = "ngsw_worker",
|
|
entry_point = ":main.ts",
|
|
deps = [
|
|
":main",
|
|
],
|
|
)
|