angular/tools
Paul Gschwendtner d614a97af9 build: update legacy saucelabs bundle generation to account for esbuild update (#44830)
Previously with ESBuild 0.14.11, when a file had dynamic requires to
builtin NodeJS modules like `url`, the resolution completed successfully
regardless of `--platform browser`. This seems to be fixed in ESBuild now.

This unveiled some resolution errors with our Saucelabs bundle generation
because the framework code sometimes switches dynamically to `require('url')`
if `window.URL` is not defined. Previously this just didn't matter, but now
the `require('url')` is checked and a module resolution error is reported given
`url` not being available in the browser as a builtin module.

We fix this by marking the module as external. We will not hit this code path
anyway in the browser saucelabs code. Similarly we exclude all platform-server
files from the bundle. This is not strictly needed after the `url` module being
marked as external, but the issue showed that lots of unnecessary code for the
server platform is included. This can be omitted (unfortunately not from the TS
compilation without over-complicating things significantly more; experimented with
that).

PR Close #44830
2022-01-31 17:00:18 +00:00
..
build build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
circular_dependency_test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
contributing-stats refactor(dev-infra): remove dependency on minimist (#43644) 2021-10-04 17:31:03 -07:00
gulp-tasks build: convert CLDR locale extraction from Gulp to Bazel tool (#42230) 2021-07-16 12:44:59 -07:00
legacy-saucelabs build: update legacy saucelabs bundle generation to account for esbuild update (#44830) 2022-01-31 17:00:18 +00:00
npm build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rxjs build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
saucelabs test: remove view-engine-only tests (#43884) 2021-11-23 21:10:06 +00:00
size-tracking build: remove view engine build infrastructure (#43884) 2021-11-23 21:10:06 +00:00
source-map-test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
symbol-extractor build: update symbol extractor to support IIFE bundles using arrow-functions (#44490) 2022-01-04 12:14:14 -08:00
testing build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tslint build: replace validate import ESM/CJS interop rule with dev-infra shipped rule (#44238) 2021-12-08 13:42:41 -05:00
BUILD.bazel build: add postinstall script as runfile for yarn_install repository rule (#44490) 2022-01-04 12:14:14 -08:00
defaults.bzl refactor(devtools): bring the angular devtools directory into the root bazel workspace 2022-01-26 16:35:31 -05:00
extract_typings_rule.bzl refactor: expose new @angular/localize/tools entry-point for CLI usage (#43431) 2021-10-01 18:28:44 +00:00
inline-package-json-deps.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jasmine-seed-generator.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
ng_benchmark.bzl build: switch all instances from ng_rollup_bundle to app_bundle (#44490) 2022-01-04 12:14:14 -08:00
postinstall-patches.js build: update postinstall patch to account for benchmark macro changes (#44830) 2022-01-31 17:00:18 +00:00
tsconfig-test.json build(bazel): use fine-grained npm deps (#26111) (#26488) 2018-10-19 20:59:29 -07:00
tsconfig.json build: enable esModuleInterop in TypeScript compilations (#43431) 2021-10-01 18:28:45 +00:00
types.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00