New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-material-ui

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-material-ui

Babel plugin to cherry-pick used material-ui modules

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108
decreased by-34.15%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-material-ui

build status npm version npm downloads Codecov

Babel plugin to cherry-pick used material-ui modules.

Example

In

import { TextField, SelectField, FlatButton } from "material-ui";
import {
  ActionAccessibility,
  ActionAccessible,
  ActionAccountBalance as BalanceIcon
} from "material-ui/svg-icons";

Out

import TextField from "material-ui/TextField";
import SelectField from "material-ui/SelectField";
import FlatButton from "material-ui/FlatButton";
import ActionAccessibility from "material-ui/svg-icons/action/accessibility";
import ActionAccessible from "material-ui/svg-icons/action/accessible";
import BalanceIcon from "material-ui/svg-icons/action/account-balance";

Installation

npm install --save-dev babel-plugin-material-ui

Usage

.babelrc

{
  "plugins": ["material-ui"]
}

Via CLI

babel --plugins material-ui script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["material-ui"]
});

Thanks

Heavily inspired by babel-plugin-date-fns, babel-plugin-lodash and babel-plugin-recharts.

FAQs

Package last updated on 30 Apr 2017

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