Skip to content

Commit 6e46076

Browse files
devversionmmalerba
authored andcommitted
build: fix mdc-migration schematic node tests failing esbuild
Fixes that the ESBuild spec-bundling fails for the MDC migration schematic unit tests (which transitively tries loading `fsevents`)
1 parent 15906c7 commit 6e46076

File tree

1 file changed

+3
-0
lines changed
  • src/material/schematics/ng-generate/mdc-migration

1 file changed

+3
-0
lines changed

src/material/schematics/ng-generate/mdc-migration/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ ts_library(
6666

6767
spec_bundle(
6868
name = "unit_tests_bundle",
69+
# Exclude the `node` devkit entry-point to avoid bundling native modules like
70+
# `chokidar` and `fsevents`. These rely on native bindings and break with ESBuild.
71+
external = ["@angular-devkit/core/node"],
6972
platform = "node",
7073
deps = [":unit_tests_lib"],
7174
)

0 commit comments

Comments
 (0)