Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 01c54d6

Browse files
committed
fix: use latest schema-utils api
1 parent e402d37 commit 01c54d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getOptions } from 'loader-utils';
2-
import validateOptions from 'schema-utils';
2+
import { validate } from 'schema-utils';
33

44
import schema from './options.json';
55

@@ -10,7 +10,7 @@ export default function loader(source) {
1010

1111
const options = getOptions(this) || {};
1212

13-
validateOptions(schema, options, 'Loader');
13+
validate(schema, options, { name: 'Loader name' });
1414

1515
const newSource = `
1616
/**

0 commit comments

Comments
 (0)