Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/create-react-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9a817dd0d780ec401afb1f99dbc0f3bdbcd51683
Choose a base ref
...
head repository: facebook/create-react-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ed958938f642007645dd5ac3466db36202f8754e
Choose a head ref
Loading
Showing with 14,386 additions and 10,701 deletions.
  1. +1 −0 .gitattributes
  2. +1 −1 .github/CODEOWNERS
  3. +1 −1 .github/ISSUE_TEMPLATE/question.md
  4. +14 −14 .github/stale.yml
  5. +1 −0 .prettierrc
  6. +449 −388 CHANGELOG-0.x.md
  7. +4 −4 CHANGELOG-1.x.md
  8. +4 −4 CHANGELOG-2.x.md
  9. +1,324 −0 CHANGELOG-3.x.md
  10. +250 −926 CHANGELOG.md
  11. +1 −1 CONTRIBUTING.md
  12. +18 −7 README.md
  13. +7 −0 SECURITY.md
  14. +38 −40 azure-pipelines-test-job.yml
  15. +77 −92 azure-pipelines.yml
  16. +4 −4 docusaurus/docs/adding-a-stylesheet.md
  17. +2 −0 docusaurus/docs/adding-css-reset.md
  18. +2 −2 docusaurus/docs/adding-custom-environment-variables.md
  19. +15 −12 docusaurus/docs/adding-images-fonts-and-files.md
  20. +3 −3 docusaurus/docs/adding-typescript.md
  21. +20 −17 docusaurus/docs/advanced-configuration.md
  22. +1 −1 docusaurus/docs/available-scripts.md
  23. +31 −16 docusaurus/docs/custom-templates.md
  24. +508 −497 docusaurus/docs/deployment.md
  25. +1 −1 docusaurus/docs/folder-structure.md
  26. +6 −5 docusaurus/docs/getting-started.md
  27. +1 −1 docusaurus/docs/importing-a-component.md
  28. +0 −1 docusaurus/docs/integrating-with-an-api-backend.md
  29. +91 −24 docusaurus/docs/making-a-progressive-web-app.md
  30. +65 −0 docusaurus/docs/measuring-performance.md
  31. +3 −3 docusaurus/docs/proxying-api-requests-in-development.md
  32. +11 −99 docusaurus/docs/running-tests.md
  33. +7 −25 docusaurus/docs/setting-up-your-editor.md
  34. +2 −2 docusaurus/docs/supported-browsers-features.md
  35. +20 −2 docusaurus/docs/troubleshooting.md
  36. +10 −0 docusaurus/docs/using-https-in-development.md
  37. +3 −3 docusaurus/docs/using-the-public-folder.md
  38. +4 −4 docusaurus/website/docusaurus.config.js
  39. +5 −5 docusaurus/website/package.json
  40. +2 −0 docusaurus/website/sidebars.json
  41. +24 −0 docusaurus/website/src/css/custom.css
  42. +8 −7 docusaurus/website/src/pages/index.js
  43. +4,287 −3,155 docusaurus/website/yarn.lock
  44. +22 −25 package.json
  45. +2 −12 packages/babel-plugin-named-asset-import/index.js
  46. +2 −2 packages/babel-plugin-named-asset-import/index.test.js
  47. +3 −3 packages/babel-plugin-named-asset-import/package.json
  48. +10 −0 packages/babel-preset-react-app/README.md
  49. +30 −44 packages/babel-preset-react-app/create.js
  50. +28 −33 packages/babel-preset-react-app/dependencies.js
  51. +1 −1 packages/babel-preset-react-app/dev.js
  52. +1 −1 packages/babel-preset-react-app/index.js
  53. +15 −19 packages/babel-preset-react-app/package.json
  54. +1 −1 packages/babel-preset-react-app/prod.js
  55. +1 −1 packages/babel-preset-react-app/test.js
  56. +1 −1 packages/babel-preset-react-app/webpack-overrides.js
  57. +2 −2 packages/confusing-browser-globals/package.json
  58. +2 −3 packages/cra-template-typescript/package.json
  59. +15 −9 packages/cra-template-typescript/template.json
  60. +8 −6 packages/cra-template-typescript/template/README.md
  61. +1 −0 packages/cra-template-typescript/template/public/robots.txt
  62. +3 −3 packages/cra-template-typescript/template/src/App.test.tsx
  63. +1 −1 packages/cra-template-typescript/template/src/App.tsx
  64. +11 −6 packages/cra-template-typescript/template/src/index.tsx
  65. +15 −0 packages/cra-template-typescript/template/src/reportWebVitals.ts
  66. +0 −145 packages/cra-template-typescript/template/src/serviceWorker.ts
  67. +1 −1 packages/cra-template-typescript/template/src/setupTests.ts
  68. +2 −3 packages/cra-template/package.json
  69. +10 −4 packages/cra-template/template.json
  70. +14 −12 packages/cra-template/template/README.md
  71. +1 −0 packages/cra-template/template/public/robots.txt
  72. +0 −1 packages/cra-template/template/src/App.js
  73. +3 −4 packages/cra-template/template/src/App.test.js
  74. +11 −6 packages/cra-template/template/src/index.js
  75. +13 −0 packages/cra-template/template/src/reportWebVitals.js
  76. +0 −137 packages/cra-template/template/src/serviceWorker.js
  77. +1 −1 packages/cra-template/template/src/setupTests.js
  78. +5 −0 packages/create-react-app/__tests__/.eslintrc
  79. +82 −0 packages/create-react-app/__tests__/getTemplateInstallPackage.test.js
  80. +323 −260 packages/create-react-app/createReactApp.js
  81. +5 −3 packages/create-react-app/index.js
  82. +17 −10 packages/create-react-app/package.json
  83. +4,861 −3,806 packages/create-react-app/yarn.lock.cached
  84. +19 −2 packages/eslint-config-react-app/README.md
  85. +47 −0 packages/eslint-config-react-app/base.js
  86. +8 −36 packages/eslint-config-react-app/index.js
  87. +46 −0 packages/eslint-config-react-app/jest.js
  88. +27 −12 packages/eslint-config-react-app/package.json
  89. +6 −6 packages/react-app-polyfill/package.json
  90. +13 −13 packages/react-app-polyfill/stable.js
  91. +12 −12 packages/react-dev-utils/ForkTsCheckerWebpackPlugin.js
  92. +1 −1 packages/react-dev-utils/InterpolateHtmlPlugin.js
  93. +25 −20 packages/react-dev-utils/README.md
  94. +2 −2 packages/react-dev-utils/WatchMissingNodeModulesPlugin.js
  95. +18 −11 packages/react-dev-utils/WebpackDevServerUtils.js
  96. +51 −0 packages/react-dev-utils/__tests__/getCSSModuleLocalIdent.test.js
  97. +128 −0 packages/react-dev-utils/__tests__/getPublicUrlOrPath.test.js
  98. +1 −1 packages/react-dev-utils/browsersHelper.js
  99. +11 −0 packages/react-dev-utils/eslintFormatter.js
  100. +4 −8 packages/react-dev-utils/formatWebpackMessages.js
  101. +2 −2 packages/react-dev-utils/getCSSModuleLocalIdent.js
  102. +65 −0 packages/react-dev-utils/getPublicUrlOrPath.js
  103. +9 −2 packages/react-dev-utils/launchEditor.js
  104. +4 −2 packages/react-dev-utils/noopServiceWorkerMiddleware.js
  105. +33 −14 packages/react-dev-utils/openBrowser.js
  106. +63 −52 packages/react-dev-utils/openChrome.applescript
  107. +23 −20 packages/react-dev-utils/package.json
  108. +1 −1 packages/react-dev-utils/printBuildError.js
  109. +4 −2 packages/react-dev-utils/printHostingInstructions.js
  110. +26 −0 packages/react-dev-utils/redirectServedPathMiddleware.js
  111. +19 −0 packages/react-dev-utils/refreshOverlayInterop.js
  112. +13 −27 packages/react-dev-utils/typescriptFormatter.js
  113. +19 −15 packages/react-dev-utils/webpackHotDevClient.js
  114. +1 −1 packages/react-error-overlay/.eslintrc
  115. +1 −1 packages/react-error-overlay/build.js
  116. +32 −29 packages/react-error-overlay/package.json
  117. +1 −1 packages/react-error-overlay/src/containers/RuntimeErrorContainer.js
  118. +2 −2 packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
  119. +1 −1 packages/react-error-overlay/src/effects/proxyConsole.js
  120. +2 −2 packages/react-error-overlay/src/index.js
  121. +2 −2 packages/react-error-overlay/src/utils/getPrettyURL.js
  122. +1 −4 packages/react-error-overlay/src/utils/parser.js
  123. +1 −1 packages/react-scripts/bin/react-scripts.js
  124. +17 −4 packages/react-scripts/config/env.js
  125. +74 −0 packages/react-scripts/config/getHttpsConfig.js
  126. +21 −1 packages/react-scripts/config/jest/babelTransform.js
  127. +2 −9 packages/react-scripts/config/modules.js
  128. +13 −30 packages/react-scripts/config/paths.js
  129. +167 −122 packages/react-scripts/config/webpack.config.js
  130. +37 −17 packages/react-scripts/config/webpackDevServer.config.js
  131. +9 −7 packages/react-scripts/fixtures/kitchensink/template.json
  132. +2 −2 packages/react-scripts/fixtures/kitchensink/template/integration/env.test.js
  133. +1 −1 packages/react-scripts/fixtures/kitchensink/template/integration/webpack.test.js
  134. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/absoluteLoad.js
  135. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/config/BaseUrl.js
  136. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/env/ExpandEnvVariables.js
  137. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/env/FileEnvVariables.js
  138. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/env/PublicUrl.js
  139. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/env/ShellEnvVariables.js
  140. +7 −2 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ArrayDestructuring.js
  141. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ArraySpread.js
  142. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/AsyncAwait.js
  143. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ClassProperties.js
  144. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ComputedProperties.js
  145. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/CustomInterpolation.js
  146. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/DefaultParameters.js
  147. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/DestructuringAndAwait.js
  148. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/Generators.js
  149. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/NullishCoalescing.js
  150. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ObjectDestructuring.js
  151. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ObjectSpread.js
  152. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/OptionalChaining.js
  153. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/Promises.js
  154. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/RestAndDefault.js
  155. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/RestParameters.js
  156. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/TemplateInterpolation.js
  157. +5 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/CssInclusion.js
  158. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/CssModulesInclusion.js
  159. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/DynamicImport.js
  160. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ImageInclusion.js
  161. +5 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/JsonInclusion.js
  162. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/LinkedModules.js
  163. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/NoExtInclusion.js
  164. +5 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassInclusion.js
  165. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassModulesInclusion.js
  166. +5 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ScssInclusion.js
  167. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ScssModulesInclusion.js
  168. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SvgComponent.js
  169. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SvgInCss.js
  170. +5 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SvgInclusion.js
  171. +3 −1 packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/UnknownExtInclusion.js
  172. +1 −1 packages/react-scripts/fixtures/kitchensink/template/src/subfolder/lol.js
  173. +8 −1 packages/react-scripts/lib/react-app.d.ts
  174. +55 −50 packages/react-scripts/package.json
  175. +16 −15 packages/react-scripts/scripts/build.js
  176. +128 −47 packages/react-scripts/scripts/init.js
  177. +30 −11 packages/react-scripts/scripts/start.js
  178. +7 −4 packages/react-scripts/scripts/utils/createJestConfig.js
  179. +32 −4 packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js
  180. +1 −1 tasks/e2e-behavior.sh
  181. +4 −4 tasks/e2e-installs.sh
  182. +1 −1 tasks/e2e-old-node.sh
  183. +1 −1 tasks/e2e-simple.sh
  184. +0 −61 tasks/e2e-typescript-unsupported-node.sh
  185. +1 −4 tasks/local-registry.sh
  186. +2 −2 tasks/local-test.sh
  187. +3 −1 tasks/verdaccio.yaml
  188. 0 test/fixtures/{node_path → global-scss-asset-resolution}/.disable-pnp
  189. +16 −0 test/fixtures/global-scss-asset-resolution/index.test.js
  190. +7 −0 test/fixtures/global-scss-asset-resolution/package.json
  191. +7 −0 test/fixtures/global-scss-asset-resolution/src/images/logo.svg
  192. +5 −0 test/fixtures/global-scss-asset-resolution/src/index.js
  193. +5 −0 test/fixtures/global-scss-asset-resolution/src/index.scss
  194. 0 test/fixtures/jsconfig/.disable-pnp
  195. 0 test/fixtures/{node_path → jsconfig}/index.test.js
  196. +5 −0 test/fixtures/jsconfig/jsconfig.json
  197. 0 test/fixtures/{node_path → jsconfig}/package.json
  198. +1 −1 test/fixtures/{node_path → jsconfig}/src/App.js
  199. +1 −1 test/fixtures/{node_path → jsconfig}/src/App.test.js
  200. +3 −1 test/fixtures/{node_path → jsconfig}/src/absoluteLoad.js
  201. 0 test/fixtures/{node_path → jsconfig}/src/index.js
  202. +0 −1 test/fixtures/node_path/.env
  203. +1 −1 test/fixtures/typescript-advanced/package.json
  204. +1 −1 test/fixtures/typescript-typecheck/package.json
  205. +1 −1 test/fixtures/typescript/package.json
  206. +7 −0 test/fixtures/typescript/src/App.ts
  207. +0 −15 test/fixtures/webpack-message-formatting/__snapshots__/index.test.js.snap
  208. +5 −1 test/fixtures/webpack-message-formatting/index.test.js
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages/ @ianschmitz @iansu @mrmckeb @petetnt
docusaurus/ @amyrlam @iansu
docusaurus/ @ianschmitz @iansu @mrmckeb
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ about: Get help with Create React App
labels: 'needs triage'
---

If you have a general question about Create React App or about building an app with Create React App we encourage you to post on our Spectrum community instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: https://spectrum.chat/create-react-app
If you have a general question about Create React App or about building an app with Create React App we encourage you to post in GitHub Discussions instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: https://github.com/facebook/create-react-app/discussions

If you're looking for general information on using React, the React docs have a list of resources: https://reactjs.org/community/support.html

28 changes: 14 additions & 14 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -9,20 +9,20 @@ daysUntilClose: 5

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- "contributions: claimed"
- "contributions: up for grabs!"
- "good first issue"
- "issue: announcement"
- "issue: bug"
- "issue: needs investigation"
- "issue: proposal"
- "tag: breaking change"
- "tag: bug fix"
- "tag: documentation"
- "tag: enhancement"
- "tag: internal"
- "tag: new feature"
- "tag: underlying tools"
- 'contributions: claimed'
- 'contributions: up for grabs!'
- 'good first issue'
- 'issue: announcement'
- 'issue: bug'
- 'issue: needs investigation'
- 'issue: proposal'
- 'tag: breaking change'
- 'tag: bug fix'
- 'tag: documentation'
- 'tag: enhancement'
- 'tag: internal'
- 'tag: new feature'
- 'tag: underlying tools'

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": true,
"semi": true
Loading