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

@elseu/sdu-react-scripts-babel-plugins

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elseu/sdu-react-scripts-babel-plugins

A set of Babel plugins for your project

  • 1.0.0-release.1
  • latest
  • release
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Babel Plugins

transform-titan-pure-annotations

With this babel plugin you can transform @elseu/sdu-titan to make it export only pure functions. Since sdu-titan exports a hoc names withTitan, many frameworks don't recognize this as a pure function. You can use this babel plugin with rollup like this:

// .babelrc
{
  "plugins": [
    "@elseu/sdu-react-scripts-babel-plugins/transform-titan-pure-annotations"
  ]
}
// rollup.config.js
import createDefaultRollupConfig from '@elseu/sdu-react-scripts-rollup'
import { getBabelOutputPlugin } from '@rollup/plugin-babel';

import pkg from './package.json';

const defaultRollupConfig = createDefaultRollupConfig(pkg);

export default {
  ...defaultRollupConfig,

  plugins: [
    ...defaultRollupConfig.plugins,

    // Rollup babel plugin added below
    getBabelOutputPlugin({
      configFile: path.resolve(__dirname, '.babelrc'),
    }),
  ]
  // Your custom Rollup config here...
}

FAQs

Package last updated on 14 Jan 2022

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