Miss any of our Open RFC calls?Watch the recordings here! »

@lingui/babel-preset-js

2.9.1 • Public • Published

License Version Downloads

@lingui/babel-preset-js

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

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

Installation

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

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

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

Via Node API

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

License

MIT

Keywords

Install

npm i @lingui/babel-preset-js

DownloadsWeekly Downloads

1,144

Version

2.9.1

License

MIT

Unpacked Size

3.14 kB

Total Files

4

Last publish

Collaborators

  • avatar