let foo = styled('div', {});
let foo = Object.assign({}, styled('div', {}), { displayName: "foo" });
$ npm install babel-plugin-transform-stitches-display-nameVia
.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