From 1d18656a703befe95471e39cbf693022f1320f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Sun, 16 Oct 2022 16:21:13 +0200 Subject: [PATCH] Review --- Gulpfile.mjs | 2 +- scripts/rollup-plugin-standalone-internals.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gulpfile.mjs b/Gulpfile.mjs index 2abc07253411..832f5e3295a1 100644 --- a/Gulpfile.mjs +++ b/Gulpfile.mjs @@ -176,7 +176,7 @@ async function generateRuntimeHelpers() { ); } -const kebabToCamel = str => str.replace(/-[a-z]/g, c => c[1].toUpperCase()); +const kebabToCamel = str => str.replaceAll(/-[a-z]/g, c => c[1].toUpperCase()); function generateStandalone() { const dest = "./packages/babel-standalone/src/generated/"; diff --git a/scripts/rollup-plugin-standalone-internals.js b/scripts/rollup-plugin-standalone-internals.js index 23eecc2d2220..a40232304f3e 100644 --- a/scripts/rollup-plugin-standalone-internals.js +++ b/scripts/rollup-plugin-standalone-internals.js @@ -13,7 +13,7 @@ const generatedPluginsPath = inStandalone("./src/generated/plugins.ts"); const makeNoopPluginPath = inStandalone("./src/make-noop-plugin.ts"); const pluginUtilsShimPath = inStandalone("./src/plugin-utils-shim.ts"); -const toCamel = str => str.replace(/-[a-z]/g, c => c[1].toUpperCase()); +const toCamel = str => str.replaceAll(/-[a-z]/g, c => c[1].toUpperCase()); const internalPlugins = new Map([ ...noopPlugins.map(plugin => [