From d3eb2ead501eaca71f25901cab2ac082129817a5 Mon Sep 17 00:00:00 2001 From: Jason Pickens Date: Thu, 28 Jan 2021 16:03:58 +1300 Subject: [PATCH] fix: use latest schema-utils api --- templates/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/src/index.js b/templates/src/index.js index 97b997c..62445fc 100644 --- a/templates/src/index.js +++ b/templates/src/index.js @@ -1,5 +1,5 @@ import { getOptions } from 'loader-utils'; -import validateOptions from 'schema-utils'; +import { validate } from 'schema-utils'; import schema from './options.json'; @@ -10,7 +10,7 @@ export default function loader(source) { const options = getOptions(this) || {}; - validateOptions(schema, options, 'Loader'); + validate(schema, options, { name: 'Loader name' }); const newSource = ` /**