Sha256: 6353beff9c150dc092971a48aa65dc7ed20aa588c67d746ab7ea23f92d16234b
Contents?: true
Size: 400 Bytes
Versions: 48
Compression:
Stored size: 400 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 null; } return query; } module.exports = getOptions;
Version data entries
48 entries across 28 versions & 9 rubygems