Package Exports
- @lingui/babel-plugin-transform-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lingui/babel-plugin-transform-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@lingui/babel-plugin-transform-js
Babel plugin which transforms messages written using
lingui-i18nfunctions to static ICU MessageFormat.
@lingui/babel-plugin-transform-js is part of LinguiJS. See the documentation for all information, tutorials and examples.
Installation
npm install --save-dev @lingui/babel-plugin-transform-js
# yarn add --dev @lingui/babel-plugin-transform-jsUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["@lingui/babel-plugin-transform-js"]
}Via CLI
babel --plugins @lingui/babel-plugin-transform-js script.jsVia Node API
require("@babel/core").transform("code", {
plugins: ["@lingui/babel-plugin-transform-js"]
})