async _beforeCompile()

in index.js [212:227]


	async _beforeCompile(callback) {
		if (!this.options.modules) callback();
		if (this.options.generatePlugin) {
			logger.info("Start preparing plugin template");
			await this.generateVisualPlugin()
				.then(() => {
					logger.info("Finish preparing plugin template");
					callback();
				})
				.catch((ex) => {
					const errors = [].concat(ex);
					errors.forEach((ex) => logger.error(ex.message));
					throw new Error("Failed to generate visualPlugin.ts");
				});
		}
	}