import loaderUtils from 'next/dist/compiled/loader-utils' import path from 'path' import { validate } from 'next/dist/compiled/schema-utils3' import isEqualLocals from './runtime/isEqualLocals' const schema = { type: 'object', properties: { injectType: { description: 'Allows to setup how styles will be injected into DOM (https://github.com/webpack-contrib/style-loader#injecttype).', enum: [ 'styleTag', 'singletonStyleTag', 'lazyStyleTag', 'lazySingletonStyleTag', 'linkTag', ], }, attributes: { description: 'Adds custom attributes to tag (https://github.com/webpack-contrib/style-loader#attributes).', type: 'object', }, insert: { description: 'Inserts `