From bb92bb23edf1c2cb14b3f1b7fb92df0a2ac52825 Mon Sep 17 00:00:00 2001 From: G <411908+gpoitch@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:33:53 -0400 Subject: [PATCH] Spread options to fix DeprecationWarning --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 32c7be9..3b126a2 100644 --- a/index.js +++ b/index.js @@ -1,18 +1,18 @@ let path = require('path') -let extend = require('util')._extend let BASE_ERROR = 'Circular dependency detected:\r\n' let PluginTitle = 'CircularDependencyPlugin' class CircularDependencyPlugin { constructor(options) { - this.options = extend({ + this.options = { exclude: new RegExp('$^'), include: new RegExp('.*'), failOnError: false, allowAsyncCycles: false, onDetected: false, - cwd: process.cwd() - }, options) + cwd: process.cwd(), + ...options + } } apply(compiler) {