Skip to content

Commit 50ba277

Browse files
committed
3.1.2 update package.json
1 parent 33ee906 commit 50ba277

File tree

3 files changed

+34
-28
lines changed

3 files changed

+34
-28
lines changed

packages/react-scripts/config/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (!NODE_ENV) {
2323
}
2424

2525
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
26-
var dotenvFiles = [
26+
const dotenvFiles = [
2727
`${paths.dotenv}.${NODE_ENV}.local`,
2828
`${paths.dotenv}.${NODE_ENV}`,
2929
// Don't include `.env.local` for `test` environment

packages/react-scripts/config/webpack.config.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ module.exports = function(webpackEnv) {
277277
},
278278
// Keep the runtime chunk separated to enable long term caching
279279
// https://twitter.com/wSokra/status/969679223278505985
280-
runtimeChunk: true,
280+
// https://github.com/facebook/create-react-app/issues/5358
281+
runtimeChunk: {
282+
name: entrypoint => `runtime-${entrypoint.name}`,
283+
},
281284
},
282285
resolve: {
283286
// This allows you to set a fallback for where Webpack should look for modules.
@@ -334,6 +337,7 @@ module.exports = function(webpackEnv) {
334337
use: [
335338
{
336339
options: {
340+
cache: true,
337341
formatter: require.resolve('react-dev-utils/eslintFormatter'),
338342
eslintPath: require.resolve('eslint'),
339343
resolvePluginsRelativeTo: __dirname,
@@ -348,7 +352,7 @@ module.exports = function(webpackEnv) {
348352
}
349353

350354
// We allow overriding the config only if the env variable is set
351-
if (process.env.EXTEND_ESLINT && eslintConfig) {
355+
if (process.env.EXTEND_ESLINT === 'true' && eslintConfig) {
352356
return eslintConfig;
353357
} else {
354358
return {
@@ -429,7 +433,8 @@ module.exports = function(webpackEnv) {
429433
// It enables caching results in ./node_modules/.cache/babel-loader/
430434
// directory for faster rebuilds.
431435
cacheDirectory: true,
432-
cacheCompression: isEnvProduction,
436+
// See #6846 for context on why cacheCompression is disabled
437+
cacheCompression: false,
433438
compact: isEnvProduction,
434439
},
435440
},
@@ -450,7 +455,8 @@ module.exports = function(webpackEnv) {
450455
],
451456
],
452457
cacheDirectory: true,
453-
cacheCompression: isEnvProduction,
458+
// See #6846 for context on why cacheCompression is disabled
459+
cacheCompression: false,
454460
// @remove-on-eject-begin
455461
cacheIdentifier: getCacheIdentifier(
456462
isEnvProduction
@@ -586,9 +592,10 @@ module.exports = function(webpackEnv) {
586592
),
587593
// Inlines the webpack runtime script. This script is too small to warrant
588594
// a network request.
595+
// https://github.com/facebook/create-react-app/issues/5358
589596
isEnvProduction &&
590597
shouldInlineRuntimeChunk &&
591-
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime~.+[.]js/]),
598+
new InlineChunkHtmlPlugin(HtmlWebpackPlugin, [/runtime-.+[.]js/]),
592599
// Makes some environment variables available in index.html.
593600
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
594601
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
@@ -688,7 +695,6 @@ module.exports = function(webpackEnv) {
688695
'!**/src/setupProxy.*',
689696
'!**/src/setupTests.*',
690697
],
691-
watch: paths.appSrc,
692698
silent: true,
693699
// The formatter is invoked directly in WebpackDevServerUtils during development
694700
formatter: isEnvProduction ? typescriptFormatter : undefined,

packages/react-scripts/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devloco/react-scripts-wptheme",
3-
"version": "3.1.1-wptheme-3.1.3",
3+
"version": "3.1.2.0",
44
"description": "Configuration and scripts for Create React WP Theme.",
55
"repository": "devloco/create-react-wptheme",
66
"author": "devloco",
@@ -41,23 +41,23 @@
4141
},
4242
"types": "./lib/react-app.d.ts",
4343
"dependencies": {
44-
"@babel/core": "7.5.5",
44+
"@babel/core": "7.6.0",
4545
"@svgr/webpack": "4.3.2",
46-
"@typescript-eslint/eslint-plugin": "1.13.0",
47-
"@typescript-eslint/parser": "1.13.0",
48-
"babel-eslint": "10.0.2",
49-
"babel-jest": "^24.8.0",
46+
"@typescript-eslint/eslint-plugin": "^2.2.0",
47+
"@typescript-eslint/parser": "^2.2.0",
48+
"babel-eslint": "10.0.3",
49+
"babel-jest": "^24.9.0",
5050
"babel-loader": "8.0.6",
51-
"babel-plugin-named-asset-import": "^0.3.3",
52-
"babel-preset-react-app": "^9.0.1",
51+
"babel-plugin-named-asset-import": "^0.3.4",
52+
"babel-preset-react-app": "^9.0.2",
5353
"camelcase": "^5.2.0",
5454
"case-sensitive-paths-webpack-plugin": "2.2.0",
5555
"css-loader": "2.1.1",
5656
"dotenv": "6.2.0",
57-
"dotenv-expand": "4.2.0",
57+
"dotenv-expand": "5.1.0",
5858
"eslint": "^6.1.0",
59-
"eslint-config-react-app": "^5.0.1",
60-
"eslint-loader": "2.2.1",
59+
"eslint-config-react-app": "^5.0.2",
60+
"eslint-loader": "3.0.0",
6161
"eslint-plugin-flowtype": "3.13.0",
6262
"eslint-plugin-import": "2.18.2",
6363
"eslint-plugin-jsx-a11y": "6.2.3",
@@ -68,34 +68,34 @@
6868
"html-webpack-plugin": "4.0.0-beta.5",
6969
"identity-obj-proxy": "3.0.0",
7070
"is-wsl": "^1.1.0",
71-
"jest": "24.8.0",
71+
"jest": "24.9.0",
7272
"jest-environment-jsdom-fourteen": "0.1.0",
73-
"jest-resolve": "24.8.0",
74-
"jest-watch-typeahead": "0.3.1",
75-
"mini-css-extract-plugin": "0.5.0",
73+
"jest-resolve": "24.9.0",
74+
"jest-watch-typeahead": "0.4.0",
75+
"mini-css-extract-plugin": "0.8.0",
7676
"optimize-css-assets-webpack-plugin": "5.0.3",
7777
"pnp-webpack-plugin": "1.5.0",
7878
"postcss-flexbugs-fixes": "4.1.0",
7979
"postcss-loader": "3.0.0",
8080
"postcss-normalize": "7.0.1",
8181
"postcss-preset-env": "6.7.0",
8282
"postcss-safe-parser": "4.0.1",
83-
"react-app-polyfill": "^1.0.2",
84-
"react-dev-utils": "^9.0.3",
83+
"react-app-polyfill": "^1.0.3",
84+
"react-dev-utils": "^9.0.4",
8585
"resolve": "1.12.0",
8686
"resolve-url-loader": "3.1.0",
8787
"sass-loader": "7.2.0",
8888
"semver": "6.3.0",
8989
"style-loader": "1.0.0",
9090
"terser-webpack-plugin": "1.4.1",
91-
"ts-pnp": "1.1.2",
91+
"ts-pnp": "1.1.4",
9292
"url-loader": "2.1.0",
93-
"webpack": "4.39.1",
93+
"webpack": "4.40.2",
9494
"webpack-dev-server": "3.2.1",
9595
"webpack-manifest-plugin": "2.0.4",
9696
"workbox-webpack-plugin": "4.3.1",
97-
"@devloco/react-scripts-wptheme-utils": "^3.1.1-wptheme-3.1.1",
98-
"@devloco/react-scripts-wptheme-error-overlay": "^3.1.1-wptheme-3.1.1"
97+
"@devloco/react-scripts-wptheme-utils": "^3.1.2.0",
98+
"@devloco/react-scripts-wptheme-error-overlay": "^3.1.2.0"
9999
},
100100
"devDependencies": {
101101
"react": "^16.8.4",

0 commit comments

Comments
 (0)