
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@fluentui/babel-make-styles
Advanced tools
A Babel plugin that performs build time transforms for @fluentui/make-styles
A Babel plugin that performs build time transforms for @fluentui/react-make-styles
.
yarn add @fluentui/babel-make-styles
.babelrc
{
"plugins": ["module:@fluentui/babel-make-styles"]
}
This plugin is designed to performed build time transforms for @fluentui/react-make-styles
, it supports both ES modules and CommonJS thus can be used in post processing after TypeScript, for example.
Transforms applied by this plugin allow to strip runtime part of makeStyles()
and improve performance.
Transforms
import { makeStyles } from '@fluentui/react-make-styles';
const useStyles = makeStyles({
root: { color: 'red' },
});
roughly to
import { __styles } from '@fluentui/react-make-styles';
const useStyles = __styles({
root: {
/* resolved styles */
},
});
FAQs
A Babel plugin that performs build time transforms for @fluentui/make-styles
We found that @fluentui/babel-make-styles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.