* Convert react-error-overlay to React
* Update compile-time error overlay to use react-error-overlay components
* Refactor react-error-overlay components to container and presentational components.
* Make the compile-time error overlay a part of react-error-overlay package.
* Use react-error-overlay as dependency in react-dev-utils to show compile-time errors.
* Run Prettier
* Move the function name fix into StackFrame itself
* Fix clicking on source code snippet to open the code in editor
* Use exact objects + minor style tweak
* Don't linkify frames that don't exist on the disk
* Fix lint
* Consolidate iframe rendering logic
* Remove circular dependency between react-dev-utils and react-error-overlay
* Fix lint
* Fix decoupling of react-dev-utils and react-error-overlay by moving middleware
* Deduplicate identical errors
* Allow importing package.json
* Remove package.json import from App.js template
* fix importing package.json
* Rename variable to reflect path is relative to root
* Check for both package & package.json in ModuleScopePlugin
* Use regex to check relative path to package.json
* Strictly enforce package.json extension on scope plugin
* Add allowedPaths to ModuleScopePlugin ctor and use it to allow app package.json
* Remove package.json import from App.js template
* Add package.json to react-scripts/template, show package version and name in the template
* Remove import package.json from template
* Remove template/package.json and its references in code
* Update ModuleScopePlugin.js
* Update README.md
* Use oneOf to resolve correct loader
* Add html and json fallthrough again
* Use oneOf to resolve correct loader in dev
* Document file-loaders `js` exclusion
* Remove `jsx` from exclusion in prod config
* Adding postcss-flexbugs-fixes
Using postcss-flexbugs-fixes to fix all flexbug's issues.
* Adding flexbox: 'no-2009' to Autoprefixer
It will add flexbox prefixes only for final and IE versions of
specification.
* Support hoisting react-scripts
* require.resolve() loaders and configs
This makes it so that loaders and configs are resolved relative to the config rather than to the app. This seems to make more sense to me.
* Browser sort is not stable
* Fix ordering of final message
* Register the warning capture
* Display only createElement warnings
* Use different method name
* Fix regression
* Ignore errors with only node_module files
* Ignore null files, too
* Revise count
* Revise warning
* Update overlay.js
* Add support for https://github.com/facebook/react/pull/9679
* Use absolute paths
* Trim path if it's absolute
* Make sure it's an absolute path
* Oops
* Tweak for new behavior
* Make it safer
* More resilient warnings
* Prettier output
* Fix flow
* ༼ つ ◕_◕ ༽つ stack-frame-overlay
* Fix linting
* Remove auto overlay
* Fix e2e
* Pull in the rest
* Appease flow
* Correct dep
* Remove old repo references
* Check flow on test
* Test overlay in e2e
* Add cross env
* Rename package
* Make sure it gets built post-install
* Update the README
* Remove extra builds now that there's a postinstall script
* Revert "Remove extra builds now that there's a postinstall script"
This reverts commit 8bf601dbd36c1e0da7f785fa9ade70ab08ed8772.
* Remove broken script
* Fix some dev ergo
* mv create-react-app/index.js -> create-react-app/creteReactApp.js
* update to modern code style
* var -> cosnt
* set trailing-coma to es5 for prettier
* Whitelist files that can be embedded through url-loader
Change the current catch-all loader to use file-loader instead of
url-loader, and exclude common image file extensons. Add another url-loader
for images, configured identically to the original catch-all loader.
Part of issue #1293.
* Update tests to reflect change in loader config
* Integration test fix
* More CI fixes
* Work around broken loader-utils behaviour in integration tests
* Revise the documentation around file loading
* Documentation tweaks
* Docs tweak
* Update test now that webpack/loader-utils has been updated
* Update react-scripts to depend on babel-loader@7.0.0-alpha.2
* Bump deps
* Add red box prototype
* Unmount fail node when hot-reloaded (future proofing)
* Slightly improve error reason
* Add Chrome unhandledrejection listener
* Close red box when Escape is pressed
* Construct our own source if not available
* Resolve sourcemaps for friendlier traces
* Allow error to be scrolled
* Only utilize sourcemaps, not the magic. :(
* Make view similar to React Native
* Fix an uncaught syntax error
* Add workaround for Firefox 50
* Add a hint for closing the prompt
* Multiple error support
When there's multiple errors, simply state that there are more instead of re-rendering
* Log any renderer error
* Dim node_modules in display
* Override chrome stack trace limit
* Magic: show me some source!
* Add ability to toggle internal calls
* Switch text from show -> hide
* Change color scheme to something easier on the eyes
* Change UI to be friendlier (thanks @nicinabox)
https://github.com/facebookincubator/create-react-app/pull/1101#issuecomment-263621057https://github.com/facebookincubator/create-react-app/pull/1101#issuecomment-263636171
* Update styles
* Add container inside overlay
* Apply pre style
* Add line highlight
* Add omitted frames ui
* Move yellow to var
* Do all function names in black
* Adapt container based on screen size
* Extract ansiHTML
Use base16-github theme
* Linting
* Add syntax highlighting of errors
* Linting
* Remove white background
* Append new files to package.json
* Target exact version
* White is a little harsh, use same color as red box.
* Fix a bug where omitted frames would never be rendered
(under certain circumstances)
* Show local file path instead of confusing webpack://
* Do not require the entire file
* Remove css file
* Use context size, not a magic variable.
* Fix title regression
* Update dependency
* Do not center text for internal calls
* Temporarily disable links
* Switch internal toggle to 'i'
* Remove unnecessary rules from container style
* Reduce omitted frames font size
* Fix font family in pre > code
* Re-introduce line highlighting
* Object.<anonymous> -> (anonymous function)
* Add ability to see script source
* Add missing ansi mappings
* Remove SIAF
* Skip native functions
* Extract hints div function
* Extract renderers
* Refacor var names
* If source is disabled, don't use the line.
* Allow toggle between source
* Allow bundles to be expanded
* Wow, how did I let this one slip?
* Toggle text for UX/DX
* Make it so clicking Close unmounts the error component
* Do not allow hot reloading once an error is thrown
* Do not wrap lines for small displays
* Fix toggle when additional errors happen
* Make the close a button
* Capture and store errors
* Dispose on render; move additional logic
* Only make code not wrap
* Switch to a view-by-index method
* Allow user to switch between errors with arrow keys
* Fix text while switching between errors
* Update close button style
* Render additional errors at top
* Add left and right arrows
* Make frames pointy
* UTF-8 arrows
* Don't mount unneeded DOM node
* Switch to single changing text for compiled <-> source
* Don't display arrows with only one error.
* Collapsed and expanded
* Make sure the last collapse toggle is appended
* Do not show the stack trace if it doesn't resolve to a file we wrote
* Style container with media queries
* Do not allow x overflow; break words by default.
* Trim off whitespace of lines
* Remove padding since it's not outer-most
* Add footer message
* Extract css file to JS
* Only inject the css when the overlay is up
* Extract red variable
* Remove env
* Update babel-code-frame
* Set force color to true
* Extract out collapse div logic
* Remove arrow field
* Insert a top collapse
* Make browser friendlier
* Absolutify ^
* Make arrows buttons
* Accessify
* Let there be ES5
* Pretty css
* Use forEach where we can ...
* Remove extracted loop
* Fix IE compatibility
* Capture React warnings
* Add source override via React output parsing
* Whoops, fix arguments to crash.
* es5-ify
* Re-enable e2e-install directory test
* Only rewrite line number if it was resolved and leaves a line at bottom
* Rename failFast to crashOverlay
* Disable console proxy
* Appease linter
* Appease more
* Enable eslint caching in development
POC for https://github.com/facebookincubator/create-react-app/issues/740. Haven't found any problem, build times improved about 1s on my project and machine.
* Bump eslint-loader to 1.6.3
* move @remove-on-eject block to persist cache config on eject
* Disable require.ensure
* Replace require.ensure with import
* Add babel plugin for parsing import()
* Get the default
* Upgrade babel-eslint to support dynamic import
* Fix dep
* Update deps
* Make all vars accessiable in index.html
* Fix wrong env provieded to DefinePlugin
* Separate results from getClientEnvironment
* The `string` should be object instead of string
* Fix accessing wrong field
* Changed variables naming to `raw` and `stringified`
* Remove trailing commas
Upgrade `babel-loader` and remove the cache directory configuration
that was added in #620. `babel-loader` now uses the
`./node_modules/.cache/babel-loader` directory by default, so the
custom config is no longer needed.