Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 5a0177e

Browse files
committed
Add module.id work-around
1 parent fbc3540 commit 5a0177e

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ http_archive(
3838
# Angular material
3939
http_archive(
4040
name = "angular_material",
41-
url = "https://github.com/gregmagolan/material2/archive/d7ac6c5376b60bb9e5c41fc7a02c37fba922c3ad.zip",
42-
strip_prefix = "material2-d7ac6c5376b60bb9e5c41fc7a02c37fba922c3ad",
41+
url = "https://github.com/gregmagolan/material2/archive/129694bb7305218ff8dc62827a14059fab4ff0ba.zip",
42+
strip_prefix = "material2-129694bb7305218ff8dc62827a14059fab4ff0ba",
4343
)
4444

4545
# Rules for compiling sass

src/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ts_devserver(
4141
entry_module = "angular_bazel_example/src/main.dev",
4242
scripts = [
4343
":require.config.js",
44+
":module-id.js",
4445
],
4546
# This is the URL we'll point our <script> tag at
4647
serving_path = "/bundle.min.js",

src/hello-world/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ts_web_test_suite(
5252
bootstrap = [
5353
"@npm//node_modules/zone.js:dist/zone-testing-bundle.js",
5454
"@npm//node_modules/reflect-metadata:Reflect.js",
55+
"//src:module-id.js",
5556
],
5657
browsers = [
5758
"@io_bazel_rules_webtesting//browsers:chromium-local",

src/module-id.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var module = {id: ''};

0 commit comments

Comments
 (0)