
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
esbuild-plugin-css-module
Advanced tools
We recommend using
esbuild-plugin-react18-css
✅ ESBuild plugin to handle CSS/SCSS modules, autoprefixer, etc. while bundling libraries
✅ Create fully treeshakable libraries (import from esbuild-plugin-react18-css/client/component)
✅ Use CSS/SCSS modules - automatically converted to BEM like CSS
✅ fully treeshakable CSS - import only the CSS files your users need
✅ Full TypeScript Support
✅ Unleash the full power of React18 Server components
✅ Works with all build systems/tools/frameworks for React18
$ pnpm add esbuild-plugin-css-module
or
$ npm install esbuild-plugin-css-module
or
$ yarn add esbuild-plugin-css-module
tsup
// tsup.config.ts or tsup.config.js
import { defineConfig } from "tsup";
import cssModulePlugin from "esbuild-plugin-css-module";
export default defineConfig(options => ({
...
esbuildPlugins:[cssModulePlugin()]
}));
import cssModulePlugin from "esbuild-plugin-css-module";
esbuild.build({
...
plugins: [cssModulePlugin()],
});
Want handson course for getting started with Turborepo? Check out React and Next.js with TypeScript and The Game of Chess with Next.js, React and TypeScrypt
Licensed as MIT open source.
Solution adopte from this discussion.
with 💖 by Mayank Kumar Chaudhari
```FAQs
ESBuild plugin to handle CSS modules
The npm package esbuild-plugin-css-module receives a total of 616 weekly downloads. As such, esbuild-plugin-css-module popularity was classified as not popular.
We found that esbuild-plugin-css-module demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.