{"_id":"babel-plugin-styled-components@2.3.1","bugs":{"url":"https://github.com/styled-components/babel-plugin-styled-components/issues"},"dist":{"shasum":"01c57976f8449b99077af1aa7a88bd49801c6b67","tarball":"http://registry-npm.ywwl.com/babel-plugin-styled-components/download/babel-plugin-styled-components-2.3.1.tgz","fileCount":20,"integrity":"sha512-qzRR73g8C6acYxnHNlKydMsJrSBKdPpJuPQlVRM2lhYUjsYaOD/V1OQ8Sas2tobQ6cS6wb0Qd6MoxNmoj3wklQ==","signatures":[{"sig":"MEYCIQCJp/d/8Lc8n5C86vr2QqJzbWDNjdJAXJo6N38zsOuq3gIhAP3HWEISuG59IdVRqcJRWvFU2u29+Y/eJBBbME1d9+aT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHwIOcOOI/CsJclYEnoEbQCbYfqJX/RgV1WIAfMZXwrrAiADtYZMyXuNnhASRPp7LDPFH5vG6H1SEdUZ1+luHlishA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/babel-plugin-styled-components@2.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":65293,"size":18085,"noattachment":false,"key":"/babel-plugin-styled-components/-/babel-plugin-styled-components-2.3.1.tgz"},"jest":{"roots":["<rootDir>/test"],"testEnvironment":"node","snapshotSerializers":["<rootDir>/test/whitespaceTrimmingSerializer.js"],"watchPathIgnorePatterns":["fixtures\\/[^/]+\\/(output|error)\\.js"]},"main":"lib/index.js","name":"babel-plugin-styled-components","license":"MIT","scripts":{"test":"jest","bench":"node scripts/bench/index.js","build":"babel src -d lib","clean":"rimraf lib","style":"prettier --write src/**/*.js","changeset":"changeset","test:watch":"pnpm test -- --watch","bench:profile":"node scripts/bench/profile.js","changeset-publish":"pnpm build && changeset publish"},"version":"2.3.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"9e5f2ad9-cbd8-4b19-92c4-f30ea2b591a0"}},"homepage":"https://styled-components.com/docs/tooling#babel-plugin","keywords":["styled-components","css-in-js","babel-plugin","server-side rendering","ssr","displayName"],"repository":{"url":"styled-components/babel-plugin-styled-components","type":"git"},"description":"Improve the debugging experience and add server-side rendering support to styled-components","directories":{},"maintainers":[{"name":"mxstbr","email":"contact@mxstbr.com"},{"name":"probablyup","email":"ej@quantizor.dev"},{"name":"philpl","email":"phil@kitten.sh"}],"contributors":["Vladimir Danchenkov <vladimir.danchenkov@gmail.com>","Max Stoiber <contact@mxstbr.com>","Phil Pluckthun <phil@kitten.sh>","Evan Jacobs <probablyup@gmail.com>"],"dependencies":{"picomatch":"^4.0.2","@babel/plugin-syntax-jsx":"^7.25.9","@babel/helper-module-imports":"^7.25.9","@babel/helper-annotate-as-pure":"^7.25.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rimraf":"^6.0.1","prettier":"^3.4.2","@babel/cli":"^7.26.4","babel-test":"^0.2.4","@babel/core":"^7.26.0","@changesets/cli":"2.31.0","@babel/preset-env":"^7.26.0","styled-components":"^6.1.14","jest-file-snapshot":"^0.5.0","@babel/plugin-transform-class-properties":"^7.25.9","@babel/plugin-transform-modules-commonjs":"^7.26.3"},"peerDependencies":{"@babel/core":"^7.0.0","styled-components":">= 2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/babel-plugin-styled-components_2.3.1_1792709439044_0.006367434023465179"},"readme":"# `babel-plugin-styled-components`\n\nThis plugin is a highly recommended supplement to the base styled-components library, offering some useful features:\n\n- consistently hashed component classNames between environments (a must for server-side rendering)\n- better debugging through automatic annotation of your styled components based on their context in the file system, etc.\n- various types of minification for styles and the tagged template literals styled-components uses\n\n## Requirements\n\nThis plugin is tested against:\n\n- `@babel/core` `^7`\n- `styled-components` `>= 6` (earlier majors may still work but aren't exercised in CI)\n\n## Quick start\n\nInstall the plugin first:\n\n```\nnpm install --save-dev babel-plugin-styled-components\n```\n\nThen add it to your babel configuration:\n\n```JSON\n{\n  \"plugins\": [\"babel-plugin-styled-components\"]\n}\n```\n\n## Options\n\nFull option reference lives on the [styled-components documentation site](https://www.styled-components.com/docs/tooling#babel-plugin). A couple worth flagging here:\n\n- `topLevelImportPaths` (`string[]`): additional module specifiers whose `styled` export should be recognized alongside `styled-components`. Useful for libraries that re-export the styled-components API.\n- `cssPropImportPath` (`string`, default `'styled-components'`): which package the css-prop transform should auto-import `styled` from when the file doesn't already have a styled import. Set to `'styled-components/native'` for React Native targets.\n\n## Changelog\n\nSee [Github Releases](https://github.com/styled-components/babel-plugin-styled-components/releases)\n\n## Documentation\n\n**The documentation for this plugin lives on [the styled-components website](https://www.styled-components.com/docs/tooling#babel-plugin)!**\n\n- [Usage](https://www.styled-components.com/docs/tooling#usage)\n- [Better debugging](https://www.styled-components.com/docs/tooling#better-debugging)\n- [Minification](https://www.styled-components.com/docs/tooling#minification)\n\n## License\n\nLicensed under the MIT License, Copyright © 2016-present Vladimir Danchenkov and Maximilian Stoiber.\n\nSee [LICENSE.md](./LICENSE.md) for more information.\n","publish_time":1792709439116,"_cnpm_publish_time":1792709439116,"dist-tags":{"dev":"1.8.0-1","ej-test":"1.10.2-ej8","evan-test":"1.10.1-ej2","experimental":"1.10.1-0","latest":"2.4.0","next":"1.7.2","test":"2.0.1-test"}}