Skip to content

Commit 6fb31d7

Browse files
author
F1LT3R
committed
Remove duplicates from babel-load dependency array.
1 parent 81ebbe8 commit 6fb31d7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/react-scripts/config/yarn-workspaces.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,10 @@ const init = paths => {
252252

253253
buildDepsTable(babelSrcPaths);
254254

255-
const applicableSrcPaths = filterSrcPaths(
255+
const applicableSrcPaths = [...new Set(filterSrcPaths(
256256
babelSrcPaths,
257-
appSettings.dependencies,
258-
paths.appPath
259-
);
257+
appSettings.dependencies
258+
))];
260259

261260
console.log(
262261
`Found ${babelSrcPaths.length} path(s) with "${

packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-workspaces/react-scripts",
3-
"version": "3.0.0-alpha-03",
3+
"version": "3.0.0-alpha-04",
44
"description": "Configuration and scripts for Create React App.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)