Neverending Plethora of Modules

npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

@lingui/babel-preset-react

2.7.4 • Public • Published

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

Via .babelrc (Recommended)

.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

install

npm i @lingui/babel-preset-react

Downloadsweekly downloads

7,327

version

2.7.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability