UNPKG

laravel-mix

Version:

The power of webpack, distilled for the rest of us.

15 lines (13 loc) 338 B
const { Component } = require('./Component'); module.exports = class When extends Component { /** * * @param {boolean} condition * @param {(api: import("laravel-mix").Api) => void} callback */ register(condition, callback) { if (condition) { callback(this.context.api); } } };