mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-04-28 17:25:54 +08:00
* create macro * add sourceType module when using babel.template * babel.types needs to be passed down to visitors * add tests * add pureAnnotation visitor from babel-plugin-styled-components * add test with require() * export 'styled-components/macro' * add css to macro * add keyframes to macro * update test snapshots * allow to import all helpers from src/index.js * add error when tags are not used with template literals * add test : should allow all helpers exported from styled-components * add injectGlobal to taggedTemplateImports * add missing tests and refactor tests * add typescript types * add flow types * replace injectGlobal by createGlobalStyle * just use babel-plugin-styled-components and apply to the whole file * update babel-plugin-styled-components to 1.8.0 * remove typescript files * add comments and fix styling of code * generate allowedImports from src/index.js * Remove unnecessary test to check allowedImports * move babel-plugin-styled-components to peerDependencies * fix tests : add babel-plugin-styled-components to devDependencies * move babel-plugin-styled-components to deps, with a lenient version * add macro to files * add changelog entry
7 lines
223 B
JSON
7 lines
223 B
JSON
{
|
|
"name": "styled-components/macro",
|
|
"private": true,
|
|
"main": "../dist/styled-components-macro.cjs.js",
|
|
"module": "../dist/styled-components-macro.esm.js",
|
|
"jsnext:main": "../dist/styled-components-macro.esm.js"
|
|
} |