HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/plugins/js_composer/assets/lib/dnd/webpack.config.js
const path = require( 'path' );
const ESLintPlugin = require('eslint-webpack-plugin');

module.exports = {
	entry: './src/index.js', // TODO: entry point will be chaged in the next task
	output: {
		filename: 'bundle.js',
		path: path.resolve( __dirname, 'dist' )
	},
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: {
					loader: 'babel-loader'
				}
			}
		]
	},
	plugins: [
		new ESLintPlugin({
			overrideConfigFile: path.resolve(__dirname, 'eslint.config.js'),
			extensions: ['js'],
			files: 'src/**/*.js',
			fix: true,
			failOnError: false,
			failOnWarning: false,
			cache: true,
			cacheLocation: path.resolve(__dirname, 'node_modules/.cache/.eslintcache')
		})
	],
	mode: 'development'
};