A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/afzalsayed96/babel-plugin-transform-stitches-display-name below:

afzalsayed96/babel-plugin-transform-stitches-display-name: Babel plugin to add displayName to your styled component

babel-plugin-transform-stitches-display-name

Babel plugin to add displayName to your styled component
let foo = styled('div', {});
let foo = Object.assign({}, styled('div', {}), {
  displayName: "foo"
});
$ npm install babel-plugin-transform-stitches-display-name
Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-stitches-display-name"]
}
$ babel --plugins transform-stitches-display-name script.js
require("@babel/core").transform("code", {
  plugins: ["transform-stitches-display-name"],
});

This plugin is adapted from @babel/plugin-transform-react-display-name many thanks to the Babel team.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4