Commit Graph

87 Commits

Author SHA1 Message Date
Joe Haddad
f0784fc27f Publish
- babel-plugin-named-asset-import@0.2.1
 - babel-preset-react-app@5.0.1
 - confusing-browser-globals@1.0.2
 - create-react-app@2.0.1
 - eslint-config-react-app@3.0.1
 - react-app-polyfill@0.1.2
 - react-dev-utils@6.0.2
 - react-error-overlay@5.0.2
 - react-scripts@2.0.2
2018-10-01 12:21:46 -04:00
Joe Haddad
2afcd4fdfc Add license file to all packages (#5192) 2018-09-30 23:17:18 -04:00
Joe Haddad
72d4ab0292 Strip flow syntax before any other transform (#5182)
* Strip flow syntax before any other transform
Plugins run before presets so we can't use the flow preset

* Add informative comment
2018-09-30 20:06:38 -04:00
Joe Haddad
c5c7da0fa5 Publish
- babel-preset-react-app@5.0.0
 - react-app-polyfill@0.1.1
 - react-dev-utils@6.0.1
 - react-error-overlay@5.0.1
 - react-scripts@2.0.1
2018-09-28 08:54:24 -04:00
Ian Sutherland
39c73ce5e3 Switch back to babel-loader (#5143)
* Switch back to babel-loader

* Preserve existing caller options. Use Object.assign instead of object spread.

* Updated filename in package.json

* Update comment about cache identifier

* Update macro check to use a regex

* Move macro check regex out of function
2018-09-27 19:17:21 -04:00
Joe Haddad
27ac52ac2f Remove runtime alias hack (#5142)
* Remove runtime alias hack

* Pass absolute path to preset

* Change comment

* Give a relative path to absolute runtime

* Clean up config

* Tweak again

* Make absolute runtime the default

* Remove runtime package from error overlay
2018-09-27 16:52:43 -04:00
XiaoYan Li
e11334f7d8 Clean up @babel/plugin-transform-regenerator (#5119) 2018-09-27 07:49:00 -04:00
Conrad Buck
52f2946919 Eliminate regenerator from preset-react-app plugins (#4630)
Regenerator is already included by preset-env.

Fixes #4627
2018-09-27 00:12:49 -04:00
XiaoYan Li
409e571f93 Add dynamic import transformer for dependencies in test env (#5110) 2018-09-26 17:07:59 -04:00
Joe Haddad
ac5376f9b9 Publish
- babel-plugin-named-asset-import@0.2.0
 - babel-preset-react-app@4.0.0
 - confusing-browser-globals@1.0.1
 - create-react-app@2.0.0
 - eslint-config-react-app@3.0.0
 - react-app-polyfill@0.1.0
 - react-dev-utils@6.0.0
 - react-error-overlay@5.0.0
 - react-scripts@2.0.0
2018-09-26 14:00:59 -04:00
Joe Haddad
adfb20c403 Turn on Babel helpers (#5093)
* Turn on helpers and test importing something with async/await works

* Compiling babel runtime breaks itself

* Add helpers option to babel plugin with defaults

* Make helpers off by default and on in our configuration

* Hit eject and e2e

* meh

* copy'n'paste

* change again

* Turn off helpers by default in /prod, /dev, /test

* oops

* Spread undefined

* Use object assign not object spread

* Put preset in template since it's needed

* Fix e2e tests
2018-09-25 18:59:06 -04:00
Joe Haddad
11737bc786 Prevent the cache of files using Babel Macros (#5078)
* Add new overrides option

* Add file to package.json

* Create our own loader

* Remove overrides

* We have to use a real babel option

* Add comments
2018-09-24 20:10:11 -04:00
Joe Haddad
d609a3fb63 Update transform dynamic import 2018-09-24 17:41:40 -04:00
Joe Haddad
2e19824dfd Update tons of packages (#5080) 2018-09-24 17:41:40 -04:00
XiaoYan Li
f9849a2662 Safely assume module type for node_modules (#5052)
https://github.com/facebook/create-react-app/pull/5046#issuecomment-423501823
2018-09-21 08:46:41 -04:00
Joe Haddad
e8b0ee8080 Allow dynamic import proposal in node_modules (#5047) 2018-09-20 16:54:12 -04:00
Joe Haddad
a1a08dba98 Correct Babel dependency behavior (#5046)
* Correct babel dependency compile target

* Correctly compile runtime for dependencies
2018-09-20 16:24:08 -04:00
Joe Haddad
c989b70b89 Further tweak runtime plugin per documentation 2018-09-20 11:26:33 -04:00
Joe Haddad
054ba79ff6 Turn off use built ins 2018-09-20 11:22:59 -04:00
Joe Haddad
0bdbe42768 Upgrade to Babel 7 stable (#5042)
Closes #4932, Closes #4876
2018-09-20 10:17:09 -04:00
Joe Haddad
c9e1876382 Lock babel configuration back to IE 9 support (ES5) (#5033) 2018-09-19 15:54:24 -04:00
Dan Abramov
1407287839 Add mode entry points to our preset (#4669) 2018-06-23 14:41:51 +01:00
Andreas Cederström
d72678fb0c - [x] Upgrade to webpack 4.8.X (#4077)
- [x] Utilize webpack 4 development and production modes
- [x] Upgrade webpack dev server
- [x] Webpack 4 compatible release of thread-loader
- [x] Webpack 4 compatible release of HtmlWebpackPlugin
- [x] Webpack 4 compatible release of SwPrecacheWebpackPlugin
- [x] Webpack 4 compatible release of WebpackManifestPlugin
- [x] Update README
- [x] Update WebpackDevServerUtils
- [x] Update InterpolateHtmlPlugin
- [x] Update ModuleScopePlugin
- [x] Update WatchMissingNodeModulesPlugin
- [x] Move UglifyJS options to webpack 4 optimize
- [x] Move InterpolateHtmlPlugin to make it tapable on HtmlWebpackPlugin
- [x] vendor splitting via splitChunks.splitChunks (https://twitter.com/wSokra/status/969633336732905474)
- [x] long term caching via splitChunks.runtimeChunk (https://twitter.com/wSokra/status/969679223278505985)
- [x] Make sure process.env.NODE_ENV is proxied correctly to `react-error-overlay`
- [x] Implicit webpack.NamedModulesPlugin in dev config as its default in webpack 4
- [x] Disable webpack performance hints as we have our own filesize reporter
- [x] Replace ExtractTextPlugin with MiniCssExtractPlugin
- [x] Switch to css whole file minification via OptimizeCSSAssetsPlugin rather than per module css minification to gain performance
2018-05-20 18:22:24 +01:00
stereobooster
a8a64c3645 Update babel-plugin-macros (#4432)
Update babel-plugin-macros to 2.2.1.
2018-05-11 10:06:21 -06:00
Andreas Cederström
0fe6fea6e4 bump babel 7 to beta 46 2018-04-27 07:53:56 +02:00
Rob Grochowicz
1d4fdc2dd4 Enable loose mode for class-properties (#4248)
* Enable loose mode for `class-properties`

* Update comment to point to discussion

Resolves #4263
2018-04-05 20:42:01 -04:00
Andreas Cederström
06176e1ea4 bump babel 7 beta (#4253) 2018-04-05 07:28:30 +02:00
Brian Ng
cb3f835586 Bump babel-related deps (#4159)
* Add explicit dep on plugin-proposal-object-rest-spread to babel-preset-react-app

* Bump babel-related deps to beta.42

* Pass useBuiltIns directly to react-preset
2018-03-18 14:22:56 -06:00
Michaël De Boey
3767d91886 Fix package repository name (#3900) 2018-01-23 00:25:03 +00:00
Michaël De Boey
25184c4e91 Fix links to package (#3898) 2018-01-22 22:16:22 +00:00
Eduardo Rabelo
d67a9e7932 feat: add opt-out for prestet-flow to work with @babel/preset-typescript (#3865)
* feat: add opt-out for prestet-flow to work with @babel/preset-typescript

* docs: adding example in readme
2018-01-19 13:10:03 +00:00
Dan Abramov
406ab6c3c0 Bump Babel 2018-01-17 20:44:59 +00:00
Ian Sutherland
a00cae77df Remove PropTypes from production build (#209) (#3818)
* Remove PropTypes from production build (#209)

* Added react/forbid-foreign-prop-types rule to eslint config

* Removed react/forbid-foreign-prop-types rule from eslint config
2018-01-17 20:28:59 +00:00
Dan Abramov
72c3d4ebb5 Try to fix CI (#3806)
* Try to fix CI

* Bump Jest elsewhere

* Bump Babel elsewhere

* Fix CI on Windows by writing .cmd file back
2018-01-16 18:24:14 +00:00
Dan Abramov
ea46cf4f36 Bump dependencies (#3785)
* Bump dependencies

* Use a more sensible way to compile error overlay

* Keep old chalk for global CLI
2018-01-15 00:08:47 -05:00
Dan Abramov
3d4440812c Compile dependencies with babel-preset-env (#3776) 2018-01-15 00:08:14 -05:00
Joe Haddad
aa67a4f78e Loosen Babel preset to use browserslist (#3770)
* Provide better defaults

* Let babel determine features to compile

* meh

* Remove setting of BABEL_ENV

* Revert "Remove setting of BABEL_ENV"

This reverts commit ee2db707faa8b9ada3e7a668e8a94944f5955a1e.

* Set browsers to ie9
2018-01-15 00:08:14 -05:00
Clement Hoang
1552949a3b Switch to Babel 7 (#3522)
* Update dependencies in react-scripts

* Add first pass of working dependencies for babel-preset-react-app and react-scripts

* Bump more dependency versions

* Adjust more versions and edit fix options

* Restore functionality of old preset

* Disable Uglify in iframe webpack

* Apply prettier

* Re-enable cache in dev and clean deps

* Lock packages and move babel/core to dep in preset

* Bump babel-jest

* Re-enable uglify

* Nest forceAllTransforms correctly in webpack config

* Install babel-core bridge for jest

* Add jest-cli and babel-core bridge to make tests in react-error-overlay pass

* Re-enable transform-dynamic-import

* Add dynamic import syntax support back

* Use new babel in kitchensink

* Transform modules in test

* Revert "Transform modules in test"

This reverts commit 539e46a1d77259898b7e70d778a5e43fc25edc2a.

* Attempt fix for ejected tests

* try this

* Add regenerator back

* Bump babel deps to beta.34

* Remove bad files

* Use default when requiring babel transform plugin

* Bump deps

* Try the fix?

* Oopsie

* Remove some weird things

* Run Babel on react-error-overlay tests

* Try fixing kitchensink

* Use new API for codeFrame

* Add missing (?) babelrc

* Maybe this helps?

* Maybe fix mocha

* I shouldn't have deleted this 🤦
2018-01-15 00:07:57 -05:00
Kent C. Dodds
3c3547f942 add experimental babel-plugin-macros support (#3675)
* add experimental babel-plugin-macros support

closes #2730

This will remain undocumented until the brave have tried it in the wild.

**Test Plan:**

There's currently no established way to test changes to
`babel-preset-react-app`. But I did create
[`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros)
[a while back](https://github.com/facebookincubator/create-react-app/issues/2730#issuecomment-328153982)
and it worked well.

* Pin the version
2018-01-15 00:06:24 -05:00
Dan
e73a783ef1 Publish
- babel-preset-react-app@3.1.1
 - create-react-app@1.5.0
 - eslint-config-react-app@2.1.0
 - react-dev-utils@5.0.0
 - react-error-overlay@4.0.0
 - react-scripts@1.1.0
2018-01-15 00:53:37 +00:00
Dan Abramov
22f9fe0d33 Always include destructuring transform (#3788)
* Always include destructuring transform

* Fix lint
2018-01-14 15:37:00 +00:00
David Boyne
ab507e62f8 Updated babel-preset-react-app README.md (#3463)
Added some more documentation to install the babel-preset-react-app making it more clear on how to get started with this preset outside of create-react-app.
2018-01-09 15:59:26 +00:00
Dan Abramov
5e7b9675aa Publish
- babel-preset-react-app@3.1.0
 - react-dev-utils@4.2.0
 - react-error-overlay@3.0.0
 - react-scripts@1.0.15
2017-10-31 09:04:34 +00:00
Dan Abramov
d98b7565b4 Bump dependencies (#3342)
* Bump dependencies

* Downgrade source-map back to 0.5.x

Not sure what changed there but our bundle snapshot doesn't match with minor changes.
I couldn't figure out how to update it, and also whether we need to tweak getPrettyURL in response.
2017-10-28 21:34:47 +01:00
Joe Haddad
b2c0b3f74b Publish
- babel-preset-react-app@3.0.3
 - create-react-app@1.4.1
 - eslint-config-react-app@2.0.1
 - react-dev-utils@4.1.0
 - react-error-overlay@2.0.2
 - react-scripts@1.0.14
2017-09-26 20:19:49 -04:00
Sophie Alpert
2e82ebb337 BSD+Patents -> MIT (#3189)
* File headers BSD+Patents -> MIT

* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Joe Haddad
bfaee410c5 Publish
- babel-preset-react-app@3.0.2
 - create-react-app@1.4.0
 - eslint-config-react-app@2.0.0
 - react-dev-utils@3.1.0
 - react-error-overlay@1.0.10
 - react-scripts@1.0.11
2017-08-08 23:39:58 -04:00
Forbes Lindesay
8442cf313b Update link to issue blocking JSX hoisting (#2732) 2017-07-06 16:47:41 +01:00
Dan Abramov
7796c94d79 Publish
- babel-preset-react-app@3.0.1
 - create-react-app@1.3.2
 - eslint-config-react-app@1.0.5
 - react-dev-utils@3.0.1
 - react-error-overlay@1.0.8
 - react-scripts@1.0.8
2017-06-28 17:30:24 +01:00
Dan Abramov
16e5d15e92 Bump dependencies (#2658) 2017-06-28 15:05:30 +01:00