Skip to content

Commit

Permalink
Update react-scripts dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed Jul 28, 2023
1 parent e99e251 commit fa5cfb2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 56 deletions.
67 changes: 17 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react-scripts/config/jest/cssTransform.js
Expand Up @@ -13,7 +13,7 @@

module.exports = {
process() {
return 'module.exports = {};';
return { code: 'module.exports = {};' };
},
getCacheKey() {
// The output is always the same.
Expand Down
8 changes: 5 additions & 3 deletions packages/react-scripts/config/jest/fileTransform.js
Expand Up @@ -17,7 +17,8 @@ module.exports = {
pascalCase: true,
});
const componentName = `Svg${pascalCaseFilename}`;
return `const React = require('react');
return {
code: `const React = require('react');
module.exports = {
__esModule: true,
default: ${assetFilename},
Expand All @@ -32,9 +33,10 @@ module.exports = {
})
};
}),
};`;
};`,
};
}

return `module.exports = ${assetFilename};`;
return { code: `module.exports = ${assetFilename};` };
},
};
4 changes: 2 additions & 2 deletions packages/react-scripts/package.json
Expand Up @@ -53,7 +53,7 @@
"jest": "^29.6.2",
"jest-resolve": "^29.6.2",
"jest-watch-typeahead": "^2.2.2",
"mini-css-extract-plugin": "^2.4.5",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.27",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^7.3.3",
Expand All @@ -64,7 +64,7 @@
"react-dev-utils": "^12.0.1",
"react-refresh": "^0.14.0",
"resolve": "^1.22.2",
"resolve-url-loader": "^4.0.0",
"resolve-url-loader": "^5.0.0",
"sass-loader": "^13.3.2",
"semver": "^7.3.5",
"source-map-loader": "^3.0.2",
Expand Down

0 comments on commit fa5cfb2

Please sign in to comment.