Skip to content

Commit cf048f5

Browse files
committed
fix(deno-lint): getOptions is now provided by webpack@5
loader-utils do not provide getOptions() anymore, it moved to webpack's core since webpack 5: https://webpack.js.org/api/loaders/#thisgetoptionsschema
1 parent 3e555f1 commit cf048f5

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

packages/deno-lint/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
},
7171
"dependencies": {
7272
"clipanion": "^3.1.0",
73-
"loader-utils": "^3.2.0",
7473
"typanion": "^3.7.1"
7574
},
7675
"devDependencies": {

packages/deno-lint/webpack-loader.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const { getOptions } = require('loader-utils')
2-
31
const { lint } = require('./index')
42

53
module.exports = function denoLintLoader(source, sm) {
64
const callback = this.async()
7-
const options = getOptions(this)
5+
const options = this.getOptions()
86
const diagnostics = lint(this.resourcePath, source, options.enableAllRules)
97

108
if (this.resourcePath.endsWith('diff-size.ts')) {

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4396,11 +4396,6 @@ loader-runner@^4.2.0:
43964396
resolved "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz#d7022380d66d14c5fb1d496b89864ebcfd478384"
43974397
integrity sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==
43984398

4399-
loader-utils@^3.2.0:
4400-
version "3.2.0"
4401-
resolved "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz#bcecc51a7898bee7473d4bc6b845b23af8304d4f"
4402-
integrity sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==
4403-
44044399
locate-path@^2.0.0:
44054400
version "2.0.0"
44064401
resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"

0 commit comments

Comments
 (0)