Skip to content

Commit

Permalink
feat(plasma-new-hope): add emotion support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeti-or committed Jul 2, 2024
1 parent e6e71ec commit 581bcc2
Show file tree
Hide file tree
Showing 16 changed files with 1,849 additions and 1,329 deletions.
23 changes: 16 additions & 7 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@ const plugins = [
'@babel/plugin-proposal-class-properties',
'babel-plugin-annotate-pure-calls',
'@babel/plugin-transform-react-constant-elements',
[
'babel-plugin-styled-components',
{
displayName: false,
namespace,
},
],
];
const ignore = ['**/*.d.ts', '**/helpers', '**/__helpers', '**/*.stories.tsx'];

process.env.EMOTION
? plugins.push([
'@emotion/babel-plugin',
{
autoLabel: 'always',
labelFormat: `${namespace}__[local]`,
},
])
: plugins.push([
'babel-plugin-styled-components',
{
displayName: false,
namespace,
},
]);

process.env.COVERAGE && plugins.push(['babel-plugin-istanbul']);

module.exports = {
Expand Down
Loading

0 comments on commit 581bcc2

Please sign in to comment.