Skip to content

Commit b4a5871

Browse files
committed
downgrading chalk, removing loader-utils
1 parent f3d1496 commit b4a5871

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

lib/webpack/copy-files-loader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
'use strict';
1111

1212
const LoaderDependency = require('webpack/lib/dependencies/LoaderDependency');
13-
const loaderUtils = require('loader-utils');
1413
const path = require('path');
1514

1615
module.exports.raw = true; // Needed to avoid corrupted binary files
@@ -43,7 +42,7 @@ module.exports.default = function loader(source) {
4342
this._module.parser = factory.getParser(requiredType);
4443
}
4544

46-
const options = loaderUtils.getOptions(this);
45+
const options = this.getOptions();
4746

4847
// Retrieve the real path of the resource, relative
4948
// to the context used by copyFiles(...)

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"url": "https://github.com/symfony/webpack-encore/issues"
2424
},
2525
"engines": {
26-
"node": "^10.19.0 || ^12.0.0 || >=14.0.0"
26+
"node": "^12.13.0 || >=14.0.0"
2727
},
2828
"homepage": "https://github.com/symfony/webpack-encore",
2929
"dependencies": {
@@ -33,12 +33,11 @@
3333
"@nuxt/friendly-errors-webpack-plugin": "^2.5.1",
3434
"assets-webpack-plugin": "7.0.*",
3535
"babel-loader": "^8.2.2",
36-
"chalk": "^5.0.0",
36+
"chalk": "^4.0.0",
3737
"clean-webpack-plugin": "^4.0.0",
3838
"css-loader": "^6.2.0",
3939
"css-minimizer-webpack-plugin": "^3.0.2",
4040
"fast-levenshtein": "^3.0.0",
41-
"loader-utils": "^3.2.0",
4241
"mini-css-extract-plugin": "^2.2.1",
4342
"pkg-up": "^4.0.0",
4443
"pretty-error": "^4.0.0",

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,11 +2179,6 @@ chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2:
21792179
ansi-styles "^4.1.0"
21802180
supports-color "^7.1.0"
21812181

2182-
chalk@^5.0.0:
2183-
version "5.0.0"
2184-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.0.0.tgz#bd96c6bb8e02b96e08c0c3ee2a9d90e050c7b832"
2185-
integrity sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==
2186-
21872182
check-error@^1.0.2:
21882183
version "1.0.2"
21892184
resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
@@ -4510,11 +4505,6 @@ loader-utils@^2.0.0:
45104505
emojis-list "^3.0.0"
45114506
json5 "^2.1.2"
45124507

4513-
loader-utils@^3.2.0:
4514-
version "3.2.0"
4515-
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.0.tgz#bcecc51a7898bee7473d4bc6b845b23af8304d4f"
4516-
integrity sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==
4517-
45184508
locate-path@^2.0.0:
45194509
version "2.0.0"
45204510
resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"

0 commit comments

Comments
 (0)