build: remove `core-js` in favor of `core-js-bundle` (#41739)

`core-js` is a CJS package which cannot be used directly in the browser. `core-js-bundle` is the bundled version of the package which can be used in directly in the browser.

PR Close #41739
This commit is contained in:
Alan Agius 2021-04-21 10:13:34 +02:00 committed by Jessica Janiuk
parent bd986cb460
commit 87873ed422
6 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ filegroup(
name = "web_test_bootstrap_scripts",
# do not sort
srcs = [
"@npm//:node_modules/core-js/client/core.js",
"@npm//:node_modules/core-js-bundle/index.js",
"//packages/zone.js/bundles:zone.umd.js",
"//packages/zone.js/bundles:zone-testing.umd.js",
"//packages/zone.js/bundles:task-tracking.umd.js",

View File

@ -37,7 +37,7 @@ module.exports = function(config) {
{pattern: 'node_modules/angular/angular?(.min).js', included: false, watched: false},
{pattern: 'node_modules/angular-mocks/angular-mocks.js', included: false, watched: false},
'node_modules/core-js/client/core.js',
'node_modules/core-js-bundle/index.js',
'node_modules/jasmine-ajax/lib/mock-ajax.js',
// Dependencies built by Bazel. See `config.yml` for steps running before

View File

@ -106,7 +106,7 @@
"chalk": "^4.1.0",
"chokidar": "^3.5.1",
"convert-source-map": "^1.5.1",
"core-js": "^2.4.1",
"core-js-bundle": "^3.10.2",
"dependency-graph": "^0.11.0",
"diff": "^5.0.0",
"domino": "~2.1.6",

View File

@ -38,7 +38,7 @@ filegroup(
testonly = True,
# do not sort
srcs = [
"@npm//:node_modules/core-js/client/core.js",
"@npm//:node_modules/core-js-bundle/index.js",
# Required for browsers that do not natively support Custom Elements.
"@npm//:node_modules/@webcomponents/custom-elements/custom-elements.min.js",
# Required for ES5 code to work with a native Custom Elements implementation.

View File

@ -22,7 +22,7 @@ karma_web_test_suite(
name = "test_web",
# do not sort
bootstrap = [
"@npm//:node_modules/core-js/client/core.js",
"@npm//:node_modules/core-js-bundle/index.js",
"@npm//:node_modules/reflect-metadata/Reflect.js",
"@npm//:node_modules/jasmine-ajax/lib/mock-ajax.js",
"//packages/zone.js/bundles:zone.umd.js",

View File

@ -4116,6 +4116,11 @@ copy-webpack-plugin@8.1.1:
schema-utils "^3.0.0"
serialize-javascript "^5.0.1"
core-js-bundle@^3.10.2:
version "3.10.2"
resolved "https://registry.yarnpkg.com/core-js-bundle/-/core-js-bundle-3.10.2.tgz#16734b2674373afa40f0533b985a1c9e87bd426f"
integrity sha512-cU/daFGOLWwtNAdXBksUl2HNqPOaM5g6bMxJ8doMw9PkshbWSzUweog2EEJsIlgmCCAFI0NLDBl4SD2TzZEevw==
core-js-compat@^3.6.2, core-js-compat@^3.8.1:
version "3.10.0"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.10.0.tgz#3600dc72869673c110215ee7a005a8609dea0fe1"
@ -4129,11 +4134,6 @@ core-js@3.10.1:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.10.1.tgz#e683963978b6806dcc6c0a4a8bd4ab0bdaf3f21a"
integrity sha512-pwCxEXnj27XG47mu7SXAwhLP3L5CrlvCB91ANUkIz40P27kUcvNfSdvyZJ9CLHiVoKSp+TTChMQMSKQEH/IQxA==
core-js@^2.4.1:
version "2.6.12"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"