diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b1a66bf9f..0ef29f3a73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Create OpenAPI specification during build - Extension point entries with supplied extensionName are sorted ascending - Possibility to configure git core config entries for jgit like core.trustfolderstat and core.supportsatomicfilecreation +- Babel-plugin-styled-components for persistent generated classnames ### Changed - New footer design diff --git a/scm-ui/babel-preset/index.js b/scm-ui/babel-preset/index.js index 14d3d23731..ddba529dd2 100644 --- a/scm-ui/babel-preset/index.js +++ b/scm-ui/babel-preset/index.js @@ -7,6 +7,10 @@ module.exports = api => { require("@babel/preset-react"), require("@babel/preset-typescript") ], - plugins: [require("@babel/plugin-proposal-class-properties"), require("@babel/plugin-proposal-optional-chaining")] + plugins: [ + require("babel-plugin-styled-components"), + require("@babel/plugin-proposal-class-properties"), + require("@babel/plugin-proposal-optional-chaining") + ] }; }; diff --git a/scm-ui/babel-preset/package.json b/scm-ui/babel-preset/package.json index 4751670f65..85eb6bf8f9 100644 --- a/scm-ui/babel-preset/package.json +++ b/scm-ui/babel-preset/package.json @@ -14,7 +14,8 @@ "@babel/preset-env": "^7.6.3", "@babel/preset-flow": "^7.0.0", "@babel/preset-react": "^7.6.3", - "@babel/preset-typescript": "^7.6.0" + "@babel/preset-typescript": "^7.6.0", + "babel-plugin-styled-components": "^1.10.7" }, "publishConfig": { "access": "public" diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 14f66a3171..bc7416defb 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -2,7 +2,7 @@ exports[`Storyshots Buttons|AddButton Default 1`] = `