Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
const { Component } = require('./Component');
module.exports = class Preact extends Component {
/**
* Required dependencies for the component.
*/
dependencies() {
return ['babel-preset-preact'];
}
register() {
if (
arguments.length === 2 &&
typeof arguments[0] === 'string' &&
typeof arguments[1] === 'string'
) {
throw new Error(
'mix.preact() is now a feature flag. Use mix.js(source, destination).preact() instead'
);
}
}
/**
* Babel config to be merged with Mix's defaults.
*/
babelConfig() {
return {
presets: ['preact']
};
}
};