diff --git a/build.js b/build.js index 9a2e93c7..06650ff9 100644 --- a/build.js +++ b/build.js @@ -14,8 +14,7 @@ StyleDictionary.registerTransform({ transformer: function(token) { const slicePrefix = token.path.slice(1); const filterDesktop = slicePrefix.filter(prefix => prefix !== "desktop"); - - return ChangeCase.camelCase(filterDesktop.join(" ")); + return ChangeCase.camelCase(filterDesktop.join(" ")).replace("_",""); } });