Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vtranslit-scheme-loader

vipranarayan1416MIT0.2.0

Webpack loader to convert vtranslit schemes written in YAML to js object.

ITRANS, vtranslit, indic scripts

readme

vtranslit-scheme-loader

Webpack loader to convert vtranslit schemes written in YAML to js object.

Usage

Install:

$ npm i vtranslit-scheme-loader

In 'webpack.config.js':

{
  "...": "...",

  module: {
    rules: [
      test: /.ya?ml$/
      {
        use: [ "vtranslit-scheme-loader"],
      },
    ],
  },
}

Note: This outputs js code in ES6. So, you might want to use Babel to convert it to ES5. The output is not in ES6. So, no need to use Babel any more.