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

Package detail

react-templates-loader

AlexanderPavlenko5.9kMIT0.6.5

react-templates loader module for webpack

react, templates, webpack

readme

react-templates loader for webpack

Usage

var template = require("react-templates-loader!./template.rt");
// => return exports of executed and compiled template.rt

Documentation: Using loaders

{
    module: {
        loaders: [
            { test: /\.rt$/, loader: "react-templates-loader?modules=amd" },
        ]
    }
}

When the loader is configured, it shouldn't be referenced in the require:

var template = require("./template.rt");

License

MIT (http://www.opensource.org/licenses/mit-license.php)