exports_watch.js

/**
 * @file exports/watch.js
 * @copyright @spmhome @_2025
 * @author Scott Meesseman @spmeesseman
 *
 * @see {@link [webpack.js.org/experiments](https://webpack.js.org/configuration/watch)}
 *
 *//** */

const WpwWebpackExport = require("./base");


/**
 * @augments WpwWebpackExport
 */
class WpwWatchExport extends WpwWebpackExport
{
    /**
     * @param {WpwExportOptions} options Plugin options
     */
    constructor(options) { super(options); }

    /**
     * @override
     */
    static create = WpwWatchExport.wrap.bind(this);

    /**
     * @override
     * @param {WpwBuild} build The current build's rc wrapper @see {@link WpwBuild}
     */
    create(build)
    {
		build.wpc.watch = false;
		// build.wpc.watch = !!build.cli.watch || !!build.cli.WEBPACK_WATCH;
		// if (build.cli.watch && build.options.watch)
		// {
		// 	build.wpc.watchOptions =
		// 	{
		// 		poll: true,
		// 		stdin: true,
		// 		followSymlinks: false,
		// 		ignored: [
		// 			"**/node_modules", "**/dist", "**/doc", "**/res", "**/script", "**/test",
		// 			"**/types", "**/webpack/**/*.js", "**/.vscode", "**/.vscode-test",
		// 			"**/.nyc_output", "**/.coverage", "**/.github"
		// 		]
		// 	};
		// }
	}
}


module.exports = WpwWatchExport.create;