UNPKG

superviews-loader

Version:

loader module using superviews.js (by davidjamesstone) for webpack.

14 lines 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const loaderUtils = require("loader-utils"); const superviews = require("superviews.js"); function loaderMain(content) { this.cacheable(); const option = Object.assign({ mode: 'cjs' }, loaderUtils.getOptions(this)); const mode = option.mode; const argstr = option.argstr; const result = superviews(content, undefined, argstr, mode); return result; } exports.loaderMain = loaderMain; //# sourceMappingURL=superviews-loader.js.map