Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 16, 2022
1 parent dfce7b4 commit 1d18656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gulpfile.mjs
Expand Up @@ -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/";
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup-plugin-standalone-internals.js
Expand Up @@ -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 => [
Expand Down

0 comments on commit 1d18656

Please sign in to comment.