From e5a35b653655026489491530c38ebe6d19a5a3b3 Mon Sep 17 00:00:00 2001 From: Peter Wagenet Date: Tue, 6 Dec 2022 11:05:37 -0800 Subject: [PATCH] Remove test polyfills --- .github/dependabot.yml | 4 ---- bin/build-for-publishing.js | 2 +- broccoli/test-polyfills.js | 27 ------------------------- ember-cli-build.js | 3 +-- package.json | 1 - smoke-tests/ember-test-app/package.json | 1 - tests/index.html | 1 - yarn.lock | 5 ----- 8 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 broccoli/test-polyfills.js diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d3a05e83fe9..4aa0ece9968 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,10 +13,6 @@ updates: - dependency-name: ember-cli versions: - 3.25.0 - - dependency-name: core-js - versions: - - 3.8.1 - - 3.8.3 - dependency-name: broccoli-rollup versions: - 4.1.1 diff --git a/bin/build-for-publishing.js b/bin/build-for-publishing.js index f39fc95919a..bc5ca24e70b 100755 --- a/bin/build-for-publishing.js +++ b/bin/build-for-publishing.js @@ -1,5 +1,5 @@ 'use strict'; -/* eslint-env node, es6 */ +/* eslint-env node */ const fs = require('fs'); const path = require('path'); diff --git a/broccoli/test-polyfills.js b/broccoli/test-polyfills.js deleted file mode 100644 index 1acff85794e..00000000000 --- a/broccoli/test-polyfills.js +++ /dev/null @@ -1,27 +0,0 @@ -const Rollup = require('broccoli-rollup'); -const writeFile = require('broccoli-file-creator'); -const resolve = require('rollup-plugin-node-resolve'); -const commonjs = require('rollup-plugin-commonjs'); - -module.exports = function polyfills() { - let polyfillEntry = writeFile( - 'polyfill-entry.js', - ` - require('core-js/modules/es6.promise'); - require('core-js/modules/es6.symbol'); - require('regenerator-runtime/runtime'); - ` - ); - - return new Rollup(polyfillEntry, { - rollup: { - input: 'polyfill-entry.js', - output: { - file: 'polyfill.js', - name: 'polyfill', - format: 'iife', - }, - plugins: [resolve(), commonjs()], - }, - }); -}; diff --git a/ember-cli-build.js b/ember-cli-build.js index 759cb39c434..76932bd8232 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -5,7 +5,6 @@ const Funnel = require('broccoli-funnel'); const babelHelpers = require('./broccoli/babel-helpers'); const concatBundle = require('./lib/concat-bundle'); const testIndexHTML = require('./broccoli/test-index-html'); -const testPolyfills = require('./broccoli/test-polyfills'); const rollupPackage = require('./broccoli/rollup-package'); const minify = require('./broccoli/minify'); const debugTree = require('broccoli-debug').buildDebugCallback('ember-source:ember-cli-build'); @@ -250,7 +249,7 @@ function templateCompilerBundle(emberPackages, transpileTree) { } function testHarness() { - return new MergeTrees([emptyTestem(), testPolyfills(), testIndexHTML(), loader(), qunit()]); + return new MergeTrees([emptyTestem(), testIndexHTML(), loader(), qunit()]); } function emptyTestem() { diff --git a/package.json b/package.json index f9d7ba444cf..e6ad88af8ac 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,6 @@ "broccoli-typescript-compiler": "^8.0.0", "broccoli-uglify-sourcemap": "^4.0.0", "common-tags": "^1.8.2", - "core-js": "^3.26.0", "dag-map": "^2.0.2", "ember-cli": "^4.8.0", "ember-cli-blueprint-test-helpers": "^0.19.2", diff --git a/smoke-tests/ember-test-app/package.json b/smoke-tests/ember-test-app/package.json index 1aa0f9bad4c..3ec9877133e 100644 --- a/smoke-tests/ember-test-app/package.json +++ b/smoke-tests/ember-test-app/package.json @@ -42,7 +42,6 @@ "ember-export-application-global": "^2.0.1", "ember-fetch": "^8.1.1", "ember-load-initializers": "^2.1.2", - "ember-maybe-import-regenerator": "^0.1.6", "ember-page-title": "^6.2.2", "ember-qunit": "^5.1.4", "ember-resolver": "^8.0.2", diff --git a/tests/index.html b/tests/index.html index d83ba2b8493..0b3f29fe8c1 100644 --- a/tests/index.html +++ b/tests/index.html @@ -9,7 +9,6 @@ display: none; } - diff --git a/yarn.lock b/yarn.lock index c47b1ce9fd9..a1f8a86e3b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3872,11 +3872,6 @@ core-js@^2.4.0, core-js@^2.6.5: resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895" integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A== -core-js@^3.26.0: - version "3.26.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.26.0.tgz#a516db0ed0811be10eac5d94f3b8463d03faccfe" - integrity sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw== - core-object@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/core-object/-/core-object-3.1.5.tgz#fa627b87502adc98045e44678e9a8ec3b9c0d2a9"