@zakijs/plugin-compiler-alipay
Version:
mor complier plugin for alipay mini program
41 lines • 2.02 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Plugin = exports.templateProcessor = void 0;
const ConfigParserPlugin_1 = __importDefault(require("./plugins/ConfigParserPlugin"));
const SjsParserPlugin_1 = __importDefault(require("./plugins/SjsParserPlugin"));
const StyleParserPlugin_1 = __importDefault(require("./plugins/StyleParserPlugin"));
const TemplateParserPlugin_1 = __importDefault(require("./plugins/TemplateParserPlugin"));
__exportStar(require("./constants"), exports);
__exportStar(require("./runtimeConfig"), exports);
var templateProcessor_1 = require("./templateProcessor");
Object.defineProperty(exports, "templateProcessor", { enumerable: true, get: function () { return templateProcessor_1.templateProcessor; } });
class AlipayCompilerPlugin {
constructor() {
this.name = 'AlipayCompilerPlugin';
}
apply(runner) {
new SjsParserPlugin_1.default().apply(runner);
new StyleParserPlugin_1.default().apply(runner);
new ConfigParserPlugin_1.default().apply(runner);
new TemplateParserPlugin_1.default().apply(runner);
}
}
exports.Plugin = AlipayCompilerPlugin;
//# sourceMappingURL=index.js.map