📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@lingui/babel-preset-react

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/babel-preset-react

Lingui preset for React apps

2.9.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

License Version Downloads

@lingui/babel-preset-react

Babel preset for all Lingui plugins required in React apps (for vanilla JS apps see @lingui/babel-preset-js).

@lingui/babel-preset-react is part of LinguiJS. See the documentation for all information, tutorials and examples.

Installation

npm install --save-dev @lingui/babel-preset-react
# yarn add --dev @lingui/babel-preset-react

Usage

.babelrc

{
  "presets": ["@lingui/babel-preset-react"]
}

Via CLI

babel script.js --presets @lingui/babel-preset-react

Via Node API

require("@babel/core").transform("code", {
  presets: ["@lingui/babel-preset-react"]
});

License

MIT

Keywords

babel

FAQs

Package last updated on 11 Sep 2020

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