Skip to content

Commit

Permalink
inline camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Mar 26, 2021
1 parent 0cad852 commit 8a999b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gulpfile.mjs
Expand Up @@ -8,7 +8,6 @@ import through from "through2";
import chalk from "chalk";
import newer from "gulp-newer";
import babel from "gulp-babel";
import camelCase from "lodash/camelCase.js";
import fancyLog from "fancy-log";
import filter from "gulp-filter";
import revertPath from "gulp-revert-path";
Expand Down Expand Up @@ -162,7 +161,9 @@ function generateStandalone() {
let allList = "";

for (const plugin of pluginConfig) {
const camelPlugin = camelCase(plugin);
const camelPlugin = plugin.replace(/-([a-z])/g, c =>
c[1].toUpperCase()
);
imports += `import ${camelPlugin} from "@babel/plugin-${plugin}";`;
list += `${camelPlugin},`;
allList += `"${plugin}": ${camelPlugin},`;
Expand Down

0 comments on commit 8a999b1

Please sign in to comment.