Skip to content

Commit

Permalink
Update dependency @types/loader-utils to v2 (cyrilwanner#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Cyril Wanner <[email protected]>
  • Loading branch information
3 people committed Aug 6, 2020
1 parent 8a13424 commit 649dc09
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 47 deletions.
118 changes: 76 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
"@babel/preset-env": "^7.9.6",
"@babel/preset-typescript": "^7.9.0",
"@types/jest": "^26.0.0",
"@types/loader-utils": "^1.1.3",
"@types/loader-utils": "^2.0.0",
"@types/sharp": "^0.25.0",
"@types/svgo": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
"eslint": "^7.0.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
Expand Down
4 changes: 4 additions & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export interface LoaderOptions {
svgo?: Record<string, unknown>;
}

export interface OptionObject {
[key: string]: any; // eslint-disable-line
}

// default options for file- & url-loader
export const defaultFurtherLoaderOptions = {
name: '[name]-[contenthash].[ext]',
Expand Down
3 changes: 1 addition & 2 deletions src/processLoaders.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import urlLoader from 'url-loader';
import { loader } from 'webpack';
import { OptionObject } from 'loader-utils';
import { ImageOptions } from './parseQuery';
import { defaultFurtherLoaderOptions } from './options';
import { defaultFurtherLoaderOptions, OptionObject } from './options';

/**
* Enrich previous loader result with new information
Expand Down

0 comments on commit 649dc09

Please sign in to comment.