Sha256: a373bf90980ccd6533c63f0b414179d8e60c4f9c6333cd4d70f93cf557240436
Contents?: true
Size: 398 Bytes
Versions: 40
Compression:
Stored size: 398 Bytes
Contents
'use strict'; const parseQuery = require('./parseQuery'); function getOptions(loaderContext) { const query = loaderContext.query; if (typeof query === 'string' && query !== '') { return parseQuery(loaderContext.query); } if (!query || typeof query !== 'object') { // Not object-like queries are not supported. return {}; } return query; } module.exports = getOptions;
Version data entries
40 entries across 15 versions & 5 rubygems