Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/appzic/esbuild-plugin-styled-components

esbuild plugin for styled components
https://github.com/appzic/esbuild-plugin-styled-components

esbuild-plugin styled-components

Last synced: about 2 months ago
JSON representation

esbuild plugin for styled components

Awesome Lists containing this project

README

        

![esbuild-plugin-styled-components-cover](https://github.com/appzic/esbuild-plugin-styled-components/assets/64678612/235d077d-cf05-4e84-8924-28ca5ba2075c)

esbuild plugin for styled components



npm


npm


GitHub

## How to Install
```bash
npm install -D esbuild-plugin-styled-components
```

## How to Use
`esbuild.config.js`
```js
import * as esbuild from 'esbuild';
import styledComponentsPlugin from "esbuild-plugin-styled-components";

await esbuild.build({
...
plugins: [
styledComponentsPlugin({
// filter: "\\.[tj]sx?$"; <-- Optional, type = string | RegExp
// ssr: true; <-- Optional, type = boolean
// displayName: false; <-- Optional, type = boolean
// fileName: false; <-- Optional, type = boolean
// meaninglessFileNames: []; <-- Optional, type = string[]
// minify: true; <-- Optional, type = boolean
// transpileTemplateLiterals: false; <-- Optional, type = boolean
// pure: false; <-- Optional, type = boolean
// topLevelImportPaths: []; <-- Optional, type = string[]
// namespace: undefined; <-- Optional, type = string
})
],
...
})
```

More details about options https://styled-components.com/docs/tooling

## Contributing

We welcome contributions from the community! Please take a look at our [CONTRIBUTING.md](CONTRIBUTING.md) file for more information on how to get started. We appreciate all kinds of contributions, from bug reports and feature requests to code contributions and documentation improvements. Thank you for considering contributing to our project!

## Contributors



## License

Licensed under the [MIT](LICENSE) License.