Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluentui/babel-make-styles

Package Overview
Dependencies
Maintainers
12
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/babel-make-styles

A Babel plugin that performs build time transforms for @fluentui/make-styles

  • 9.0.0-alpha.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-88.97%
Maintainers
12
Weekly downloads
 
Created
Source

@fluentui/babel-make-styles

A Babel plugin that performs build time transforms for @fluentui/react-make-styles.

Install

yarn add @fluentui/babel-make-styles

Usage

.babelrc

{
  "plugins": ["module:@fluentui/babel-make-styles"]
}

Transforms

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.

Example

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

Package last updated on 13 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc