Socket
Book a DemoInstallSign in
Socket

babel-plugin-react-semcore

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-semcore

Utility for `@semcore` component's styles manipulations.

latest
npmnpm
Version
4.1.0
Version published
Maintainers
1
Created
Source

babel-plugin-react-semcore

Utility for @semcore component's styles manipulations.

Install

yarn:

$ yarn add babel-plugin-react-semcore -D

Usage

Webpack:

{
    test: /\.js$/,
    include: /\/node_modules\/semcore\//,
    enforce: 'pre',
    use: {
        loader: require.resolve('babel-loader'),
        options: {
            babelrc: false, // optional, include if u use .babelrc
            configFile: false, // optional, include if u use babel.config.js, doesnt affect babelrc option https://babeljs.io/docs/en/options#configfile
            plugins: [['babel-plugin-react-semcore', {
              ...pluginOptions
            }]]
        },
    },
}

Options

OptionTypeDescription
mediabooleanThis option enables adaptive styles in @semcore components
themestring or string[]This option applies theme to @semcore components.
purgeCSSObject = { shorten: false }This option forwards options to css-purge tool, which removes duplicates from built styles

FAQs

Package last updated on 05 Dec 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