From 0809abf565805707971728819db3fa4cf1005166 Mon Sep 17 00:00:00 2001 From: Nick Galloway Date: Fri, 16 Oct 2020 12:19:13 -0700 Subject: [PATCH] Update to latest from facebook/create-react-app master (#4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update packages (#9081) * Fix dotenv file loading order (#9037) * Fix dotenv file loading order * tests: fix failing env tests * tests: fix more failing tests Co-authored-by: Brody McKee * feat: remove typescript flag and NODE_PATH support (#8934) * Update question issue template * Update getting-started.md to match templates (#9089) * Upgrade to Jest 26 (#8955) * Update Jest to 26 * Upgrade to Jest 26.0.1 * Use jest-circus test runner by default * Try resolving test runner to fix behavior tests * Run TypeScript verification in new context * Delete globalThis if polyfilled * feat(react-scripts): allow testMatch for jest config (#9114) resolves #8637 * Add support for absolute paths when using url() in CSS (#7937) * Support scss absolute path resolution for url() Adding resolve-url-loader broke all apps using scss with centralized assets folder and all url(./assets/*.png) broke (#7023). This change allows apps to use url(/assets/*.png) and it would map to src/assets/*.png * test: Add global scss assets test * Upgrade dependencies (#9132) * Fix typo in docs (#9135) * Add performance relayer + documentation (web-vitals) (#9116) Co-authored-by: Brody McKee Co-authored-by: Ian Schmitz * Update deployment docs for Azure Static Web Apps (#9042) Co-authored-by: Minh Nguyen * Replace Spectrum links with GitHub Discussions (#9102) * Use process.execPath to spawn node subprocess (#8694) * Upgrade dependencies (#9196) * Bump version of Verdaccio (#7787) * Support ESLint 7.x (#8978) * Fix chai URL (#8895) The root domain, chaijs.com, does not serve a valid certificate and gives a browser warning. * Explain how to uninstall create-react-app globally (#9244) * Explain how to uninstall create-react-app globally * Add uninstallation intructions for yarn * Upgrade dependencies (#9317) * Switch to the Workbox InjectManifest plugin (#9205) Co-authored-by: Ian Schmitz * Upgrade refresh plugin (#9348) * feat: Update ESLint dependencies (#9251) Co-authored-by: Ian Schmitz * Remove server worker registration from default templates (#9349) * Clarify wording in adding TypeScript to existing project (#9231) * feat: better refresh plugin integration (#9375) * feat: exit on outdated create-react-app version (#9359) * Prepare 4.0.0 alpha release * Updated README.md Templates to Follow ESLint Markdown Rules (#9241) * [Doc] fix React Testing Library example (#9245) * Update running-tests.md (#9380) * Add Fast Refresh warning when using React < 16.10 (#9350) * Publish refreshOverlayInterop with react-dev-utils (#9390) * fix: remove deprecated rule (#9401) * clean formatMessage usage (#9059) * feat: Update testing-library dependencies to latest (#9252) * fix: use default modules option from `preset-env` (#9374) * Bump immer version (#8933) Co-authored-by: Ian Schmitz Co-authored-by: Ian Sutherland * Upgrade whatwg-fetch (#9392) Co-authored-by: Ian Schmitz * Fix template name handling (#9412) * Prepare 4.0.0 alpha release * chore: update to jest@26.3 (#9461) * Create SECURITY.md * Add 3.4.2 to changelog * Add 3.4.3 to the changelog * Fixes in the /packages/react-devs-utils/README.md file (#9471) * Added CRA logo in README.md (#9363) * Added React logo in README.md * Added React logo in README file that makes looks nicer now. * Added CRA Logo in README.md that looks nicer * Replacing React Logo with CRA Logo instead Co-authored-by: Eddie Monge Jr * Update README.md Co-authored-by: Eddie Monge Jr Co-authored-by: Dan Abramov * Update Vercel deployment documentation (#9560) * Fix insensitive language in Docusaurus docs (#9618) * Remove ESLint extends and add Jest rules (#9587) * fix: Fix azure-pipelines' endOfLine (#9258) * Update template dependencies to latest version (#9526) Co-authored-by: Ian Schmitz * Update running-tests.md (#9073) * feat: Update ESLint dependencies (#9434) * Emphasise that Next.js is capable of SSG (#9630) * docs: add alt tag to homepage logo (#9499) * fix: resolve CI build failure (#9640) * Use new JSX transform with React 17 (#9645) * Upgrade dependencies (#9639) * Prepare 4.0.0 alpha release * Update postcss-safe-parser * Prepare 4.0.0 alpha release * Update CODEOWNERS * fix: resolve ESLint config from appPath (#9683) * Add AVIF image support (#9611) Co-authored-by: Ian Schmitz * fix: resolve new JSX runtime issues (#9788) * Upgrade Docusaurus to latest version (#9728) Co-authored-by: Ian Schmitz Co-authored-by: Joe Haddad Co-authored-by: Brody McKee Co-authored-by: Brody McKee Co-authored-by: Ian Sutherland Co-authored-by: Josemaria Nriagu <49484425+josenriagu@users.noreply.github.com> Co-authored-by: Jeroen Claassens Co-authored-by: atlanteh Co-authored-by: Jakob Krigovsky Co-authored-by: Houssein Djirdeh Co-authored-by: Burke Holland Co-authored-by: Minh Nguyen Co-authored-by: Anuraag Agrawal Co-authored-by: Michaël De Boey Co-authored-by: Brian Morearty Co-authored-by: Nick McCurdy Co-authored-by: Jeffrey Posnick Co-authored-by: Dylan Brookes <24858006+merelinguist@users.noreply.github.com> Co-authored-by: Michael Mok Co-authored-by: Rafael Quijada Co-authored-by: Sakito Mukai Co-authored-by: Andy C <7357845+andycanderson@users.noreply.github.com> Co-authored-by: Kline Moralee Co-authored-by: Gerrit Alex Co-authored-by: Sam Chen Co-authored-by: Huáng Jùnliàng Co-authored-by: Stafford Williams Co-authored-by: Lenard Pratt Co-authored-by: Simen Bekkhus Co-authored-by: Dan Abramov Co-authored-by: Webdot_30 Co-authored-by: Raihan Nismara <31585789+raihan71@users.noreply.github.com> Co-authored-by: Eddie Monge Jr Co-authored-by: Timothy <1695613+timothyis@users.noreply.github.com> Co-authored-by: Liam Duffy <3338808+liamness@users.noreply.github.com> Co-authored-by: Tobias Büschel <13087421+tobiasbueschel@users.noreply.github.com> Co-authored-by: Hongbo Miao Co-authored-by: Alexey Pyltsyn --- packages/babel-preset-react-app/create.js | 9 +++++++++ packages/create-react-app/yarn.lock.cached | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 99a930ba470..f8a074decac 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -8,6 +8,15 @@ const path = require('path'); +const hasJsxRuntime = (() => { + try { + require.resolve('react/jsx-runtime.js'); + return true; + } catch (e) { + return false; + } +})(); + const validateBoolOption = (name, value, defaultValue) => { if (typeof value === 'undefined') { value = defaultValue; diff --git a/packages/create-react-app/yarn.lock.cached b/packages/create-react-app/yarn.lock.cached index 7ec4ada0934..fa101957eae 100644 --- a/packages/create-react-app/yarn.lock.cached +++ b/packages/create-react-app/yarn.lock.cached @@ -11470,4 +11470,4 @@ yargs@^15.4.1: string-width "^4.2.0" which-module "^2.0.0" y18n "^4.0.0" - yargs-parser "^18.1.2" + yargs-parser "^18.1.2" \ No newline at end of file