We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e7a21 commit 1ab50dfCopy full SHA for 1ab50df
index.js
@@ -27,14 +27,19 @@ module.exports = function (source, map) {
27
var plugins;
28
if ( typeof options === 'undefined' ) {
29
plugins = [];
30
- } else if ( !Array.isArray(options) ) {
+ } else if ( Array.isArray(options) ) {
31
+ plugins = options;
32
+ } else {
33
plugins = options.plugins || options.defaults;
34
opts.stringifier = options.stringifier;
35
opts.parser = options.parser;
36
opts.syntax = options.syntax;
37
}
38
if ( params.pack ) {
39
plugins = options[params.pack];
40
+ if ( !plugins ) {
41
+ throw new Error('PostCSS plugin pack is not defined in options');
42
+ }
43
44
45
if ( params.syntax ) {
0 commit comments