react/scripts/rollup
Sophie Alpert 767f52237c
Use .slice() for all substring-ing (#26677)
- substr is Annex B
- substring silently flips its arguments if they're in the "wrong order", which is confusing
- slice is better than sliced bread (no pun intended) and also it works the same way on Arrays so there's less to remember

---

> I'd be down to just lint and enforce a single form just for the potential compression savings by using a repeated string.

_Originally posted by @sebmarkbage in https://github.com/facebook/react/pull/26663#discussion_r1170455401_
2023-04-19 14:26:01 -07:00
..
plugins Update Rollup to 3.x (#26442) 2023-03-24 18:08:41 +00:00
shims Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
validate [Flight] Add support BigInt support (#26479) 2023-03-29 18:23:43 +02:00
wrappers Fix module-boundary wrappers (#22688) 2021-11-04 10:40:35 -04:00
build-all-release-channels.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00
build.js Fix remaining CommonJS imports after Rollup upgrade (#26473) 2023-03-25 00:05:23 +00:00
bundles.js Update Rollup to 3.x (#26442) 2023-03-24 18:08:41 +00:00
forks.js Rename HostConfig files to FiberConfig to clarify they are configs fo… (#26592) 2023-04-10 14:58:44 -07:00
generate-inline-fizz-runtime.js Update Closure Compiler (#26205) 2023-02-20 13:27:13 -05:00
modules.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
packaging.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00
stats.js Fix sizebot (#15771) 2019-05-29 21:30:16 -07:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Fixed broken build script --unsafe-partial flag (#22324) 2021-09-15 13:32:09 -04:00
wrappers.js Post-process build files for React Native to add generated signature and @nolint (#26616) 2023-04-14 11:42:48 +02:00