Package Exports
- react-templates-loader
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 (react-templates-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-templates loader for webpack
Usage
var template = require("react-templates-loader!./template.rt");
// => return exports of executed and compiled template.rtRecommended configuration
{
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");