|
| 1 | +diff --git a/node_modules/@angular/build-tooling/bazel/app-bundling/esbuild.config-tmpl.mjs b/node_modules/@angular/build-tooling/bazel/app-bundling/esbuild.config-tmpl.mjs |
| 2 | +index 618bbc5..96c6c92 100755 |
| 3 | +--- a/node_modules/@angular/build-tooling/bazel/app-bundling/esbuild.config-tmpl.mjs |
| 4 | ++++ b/node_modules/@angular/build-tooling/bazel/app-bundling/esbuild.config-tmpl.mjs |
| 5 | +@@ -9,9 +9,9 @@ |
| 6 | + import * as path from 'path'; |
| 7 | + |
| 8 | + import {createEsbuildAngularOptimizePlugin} from '@angular/build-tooling/shared-scripts/angular-optimization/esbuild-plugin.mjs'; |
| 9 | +-import {createEs2015LinkerPlugin} from '@angular/compiler-cli/linker/babel'; |
| 10 | +-import {ConsoleLogger, NodeJSFileSystem, LogLevel} from '@angular/compiler-cli'; |
| 11 | +-import {GLOBAL_DEFS_FOR_TERSER_WITH_AOT} from '@angular/compiler-cli/private/tooling'; |
| 12 | ++import {createEs2015LinkerPlugin} from '@angular/compiler-cli/linker/babel/index.js'; |
| 13 | ++import {ConsoleLogger, NodeJSFileSystem, LogLevel} from '@angular/compiler-cli/index.mjs'; |
| 14 | ++import {GLOBAL_DEFS_FOR_TERSER_WITH_AOT} from '@angular/compiler-cli/private/tooling.js'; |
| 15 | + |
| 16 | + /** Root path pointing to the app bundle source entry-point file. */ |
| 17 | + const entryPointSourceRootPath = path.normalize(`TMPL_ENTRY_POINT_ROOTPATH`); |
| 18 | +diff --git a/node_modules/@angular/build-tooling/bazel/app-bundling/index.bzl b/node_modules/@angular/build-tooling/bazel/app-bundling/index.bzl |
| 19 | +index 1edd96d..b1c2ed1 100755 |
| 20 | +--- a/node_modules/@angular/build-tooling/bazel/app-bundling/index.bzl |
| 21 | ++++ b/node_modules/@angular/build-tooling/bazel/app-bundling/index.bzl |
| 22 | +@@ -64,7 +64,8 @@ def app_bundle( |
| 23 | + name = "%s_esbuild_config" % name, |
| 24 | + config_file = ":%s_config_file" % name, |
| 25 | + deps = [ |
| 26 | +- "@npm//@angular/compiler-cli", |
| 27 | ++ "@angular//packages/compiler-cli", |
| 28 | ++ "@angular//packages/compiler-cli/linker/babel", |
| 29 | + "@npm//@angular/build-tooling/shared-scripts/angular-optimization:js_lib", |
| 30 | + ], |
| 31 | + **common_base_attributes |
| 32 | +diff --git a/node_modules/@angular/build-tooling/bazel/benchmark/component_benchmark/component_benchmark.bzl b/node_modules/@angular/build-tooling/bazel/benchmark/component_benchmark/component_benchmark.bzl |
| 33 | +index 6213703..7c0abd3 100755 |
| 34 | +--- a/node_modules/@angular/build-tooling/bazel/benchmark/component_benchmark/component_benchmark.bzl |
| 35 | ++++ b/node_modules/@angular/build-tooling/bazel/benchmark/component_benchmark/component_benchmark.bzl |
| 36 | +@@ -1,7 +1,7 @@ |
| 37 | + load("@npm//@angular/build-tooling/bazel/app-bundling:index.bzl", "app_bundle") |
| 38 | + load("@npm//@angular/build-tooling/bazel/http-server:index.bzl", "http_server") |
| 39 | + load("@npm//@angular/build-tooling/bazel:expand_template.bzl", "expand_template") |
| 40 | +-load("@npm//@angular/bazel:index.bzl", "ng_module") |
| 41 | ++load("@angular//tools:defaults.bzl", "ng_module") |
| 42 | + load("@npm//@bazel/concatjs:index.bzl", "ts_library") |
| 43 | + load(":benchmark_test.bzl", "benchmark_test") |
| 44 | + |
| 45 | +@@ -37,8 +37,8 @@ def component_benchmark( |
| 46 | + driver_deps, |
| 47 | + ng_srcs, |
| 48 | + ng_deps = [ |
| 49 | +- "@npm//@angular/core", |
| 50 | +- "@npm//@angular/platform-browser", |
| 51 | ++ "@angular//packages/core", |
| 52 | ++ "@angular//packages/platform-browser", |
| 53 | + ], |
| 54 | + ng_assets = [], |
| 55 | + assets = None, |
| 56 | +@@ -108,7 +108,7 @@ def component_benchmark( |
| 57 | + # checked by TypeScript. We add the dependency only for bundling to reduce the compilation |
| 58 | + # scope and to make it easier to replace this dependency inside the `angular/angular` |
| 59 | + # repository with its corresponding source target that does not come with any typings. |
| 60 | +- ng_bundle_deps.append("@npm//zone.js") |
| 61 | ++ ng_bundle_deps.append("//packages/zone.js/dist:zone") |
| 62 | + |
| 63 | + if not assets: |
| 64 | + html = prefix + "index.html" |
| 65 | +diff --git a/node_modules/@angular/build-tooling/shared-scripts/angular-linker/BUILD.bazel b/node_modules/@angular/build-tooling/shared-scripts/angular-linker/BUILD.bazel |
| 66 | +index b14dbdb..eb21619 100755 |
| 67 | +--- a/node_modules/@angular/build-tooling/shared-scripts/angular-linker/BUILD.bazel |
| 68 | ++++ b/node_modules/@angular/build-tooling/shared-scripts/angular-linker/BUILD.bazel |
| 69 | +@@ -19,7 +19,8 @@ js_library( |
| 70 | + package_name = "@angular/build-tooling/shared-scripts/angular-linker", |
| 71 | + srcs = [":js_lib_files"], |
| 72 | + deps = [ |
| 73 | +- "@npm//@angular/compiler-cli", |
| 74 | ++ "@angular//packages/compiler-cli", |
| 75 | ++ "@angular//packages/compiler-cli/linker/babel", |
| 76 | + "@npm//@babel/core", |
| 77 | + ], |
| 78 | + ) |
| 79 | +diff --git a/node_modules/@angular/build-tooling/shared-scripts/angular-linker/esbuild-plugin.mjs b/node_modules/@angular/build-tooling/shared-scripts/angular-linker/esbuild-plugin.mjs |
| 80 | +index 965a10e..175aa92 100755 |
| 81 | +--- a/node_modules/@angular/build-tooling/shared-scripts/angular-linker/esbuild-plugin.mjs |
| 82 | ++++ b/node_modules/@angular/build-tooling/shared-scripts/angular-linker/esbuild-plugin.mjs |
| 83 | +@@ -7,8 +7,8 @@ |
| 84 | + */ |
| 85 | + |
| 86 | + import fs from 'fs'; |
| 87 | +-import {NodeJSFileSystem, ConsoleLogger, LogLevel} from '@angular/compiler-cli'; |
| 88 | +-import {createEs2015LinkerPlugin} from '@angular/compiler-cli/linker/babel'; |
| 89 | ++import {NodeJSFileSystem, ConsoleLogger, LogLevel} from '@angular/compiler-cli/index.mjs'; |
| 90 | ++import {createEs2015LinkerPlugin} from '@angular/compiler-cli/linker/babel/index.mjs'; |
| 91 | + import babel from '@babel/core'; |
| 92 | + |
| 93 | + /** Naively checks whether this node path resolves to an Angular declare invocation. */ |
0 commit comments