Repository: segmentio/evergreen (language: javascript)

Issue:
Warnings from create-react-app/react-scripts v5
There are some warnings being thrown from including sourcemaps without source files after upgrading to `create-react-app`/`react-scripts` v5:

```
WARNING in ./node_modules/ui-box/dist/src/utils/split-props.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/utils/split-props.ts' file: Error: ENOENT: no such file or directory, open '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/utils/split-props.ts'
 @ ./node_modules/ui-box/dist/src/index.js 23:20-50
 @ ./node_modules/evergreen-ui/esm/index.js 3:0-43 3:0-43
 @ ./src/App.js 4:0-36 9:35-39
 @ ./src/index.js 7:0-24 11:33-36

WARNING in ./node_modules/ui-box/dist/src/utils/style-sheet.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/utils/style-sheet.ts' file: Error: ENOENT: no such file or directory, open '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/utils/style-sheet.ts'
 @ ./node_modules/ui-box/dist/src/styles.js 13:38-68
 @ ./node_modules/ui-box/dist/src/index.js 17:28-47
 @ ./node_modules/evergreen-ui/esm/index.js 3:0-43 3:0-43
 @ ./src/App.js 4:0-36 9:35-39
 @ ./src/index.js 7:0-24 11:33-36

WARNING in ./node_modules/ui-box/dist/src/value-to-string.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/value-to-string.ts' file: Error: ENOENT: no such file or directory, open '/Users/brandon.scott/cra-v5-evergreen-warnings/node_modules/ui-box/src/value-to-string.ts'
 @ ./node_modules/ui-box/dist/src/get-css.js 15:42-70
 @ ./node_modules/ui-box/dist/src/enhancers/background.js 15:34-55
 @ ./node_modules/ui-box/dist/src/enhancers/index.js 15:32-55
 @ ./node_modules/ui-box/dist/src/index.js 39:14-42
 @ ./node_modules/evergreen-ui/esm/index.js 3:0-43 3:0-43
 @ ./src/App.js 4:0-36 9:35-39
 @ ./src/index.js 7:0-24 11:33-36

37 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.70.0 compiled with 37 warnings in 15239 ms
```

Related: https://github.com/facebook/create-react-app/discussions/11767

It sounds like disabling inline sourcemaps is our best bet. We may also need to do the same for [`ui-box`](https://github.com/segmentio/ui-box)


Discussion / hints:

Fix patch:
diff --git a/package.json b/package.json
index 4eac30904..6e8357149 100644
--- a/package.json
+++ b/package.json
@@ -32,8 +32,8 @@
   "sideEffects": false,
   "scripts": {
     "build": "yarn generate-icons && concurrently --names 'commonjs,esm,umd' 'yarn build-commonjs' 'yarn build-esm' 'yarn build-umd'",
-    "build-commonjs": "BABEL_ENV=commonjs babel src --out-dir commonjs --ignore '**/stories','**/test' --source-maps inline",
-    "build-esm": "BABEL_ENV=esm babel src --out-dir esm --ignore '**/stories','**/test' --source-maps inline",
+    "build-commonjs": "BABEL_ENV=commonjs babel src --out-dir commonjs --ignore '**/stories','**/test'",
+    "build-esm": "BABEL_ENV=esm babel src --out-dir esm --ignore '**/stories','**/test'",
     "build-storybook": "build-storybook",
     "build-umd": "rollup -c",
     "chromatic": "npx chromatic",
@@ -75,7 +75,7 @@
     "react-fast-compare": "^3.2.0",
     "react-transition-group": "^4.4.1",
     "tinycolor2": "^1.4.1",
-    "ui-box": "^5.0.0"
+    "ui-box": "^5.0.1"
   },
   "peerDependencies": {
     "react": "^16.8.0 || ^17.0.0",
diff --git a/yarn.lock b/yarn.lock
index aad54e238..6824698ef 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -13983,10 +13983,10 @@ ua-parser-js@^0.7.18:
   resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31"
   integrity sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g==
 
-ui-box@^5.0.0:
-  version "5.0.0"
-  resolved "https://registry.yarnpkg.com/ui-box/-/ui-box-5.0.0.tgz#8b73e81cc7a50cf53749b969d411e8f56a93af48"
-  integrity sha512-DJZZKe8UoB1e6hNenNniO3ror9ER57EG5k+fOUm17vrLnU2T4vhoTnWGoStewXJzQ4Ur9ox9Xk4kljVKFpXlzQ==
+ui-box@^5.0.1:
+  version "5.0.1"
+  resolved "https://registry.yarnpkg.com/ui-box/-/ui-box-5.0.1.tgz#a2eaf230c004c06f0acab414d1fdfe922a970287"
+  integrity sha512-LhZ5pHE+QdtoAZlbSgSSrxrByHBDJfIaTQr9OPxi9cJ56f5SySJYlvIRXvFDmF4hwgs0WBcvV8v6Gp8pJPrPrQ==
   dependencies:
     "@emotion/hash" "^0.7.1"
     inline-style-prefixer "^5.0.4"


Test patch: