How to use @lingui/babel-plugin-transform-js - 2 common examples

To help you get started, we’ve selected a few @lingui/babel-plugin-transform-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lingui / js-lingui / packages / babel-preset-react / index.js View on Github external
var transformJs = require("@lingui/babel-plugin-transform-js").default
var transformReact = require("@lingui/babel-plugin-transform-react").default

module.exports = function(context, opts) {
  return {
    plugins: [transformJs, transformReact]
  }
}
github lingui / js-lingui / packages / babel-preset-js / index.js View on Github external
var transformJs = require("@lingui/babel-plugin-transform-js").default

module.exports = function(context, opts) {
  return {
    plugins: [transformJs]
  }
}

@lingui/babel-plugin-transform-js

Transform lingui-i18n methods to ICU message format

MIT
Latest version published 4 years ago

Package Health Score

65 / 100
Full package analysis

Popular @lingui/babel-plugin-transform-js functions