Files
rspade_system/node_modules/laravel-mix/src/components/Component.js
root f6fac6c4bc Fix bin/publish: copy docs.dist from project root
Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 02:08:33 +00:00

67 lines
1.3 KiB
JavaScript
Executable File

/**
* @abstract
* @internal (for now)
**/
class Component {
/** Whether or not to automatically register this component */
passive = false;
/** Whether or not this component requires dependency reloading */
requiresReload = false;
/**
* The name used to call this component.
*
* @deprecated
**/
caller = '';
/**
*
* @param {import("../Mix")} mix
*/
constructor(mix) {
this.context = mix;
}
/**
* Specifiy one or more dependencies that must
* be installed for this component to work
*
* @returns {import("../PackageDependency").Dependency[]}
**/
dependencies() {
return [];
}
/**
* Add rules to the webpack config
*
* @returns {import('webpack').RuleSetRule[]}
**/
webpackRules() {
return [];
}
/**
* Add plugins to the webpack config
*
* @returns {import('webpack').WebpackPluginInstance[]}
**/
webpackPlugins() {
return [];
}
/**
* Update the webpack config
*
* @param {import('webpack').Configuration} config
* @returns {import('webpack').Configuration}
**/
webpackConfig(config) {
return config;
}
}
module.exports.Component = Component;