Skip to content

Commit

Permalink
revert update of loader-utils to 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rpominov committed Oct 27, 2022
1 parent c15d691 commit 9b2b097
Show file tree
Hide file tree
Showing 3 changed files with 7,375 additions and 1,818 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -2,7 +2,7 @@ const { optimize, loadConfig } = require('svgo');
const loaderUtils = require('loader-utils');

async function loader(source) {
const { configFile, ...options } = this.getOptions() || {};
const { configFile, ...options } = loaderUtils.getOptions(this) || {};
let config;
if (typeof configFile === 'string') {
config = await loadConfig(configFile, this.context);
Expand Down

0 comments on commit 9b2b097

Please sign in to comment.