Skip to content

Commit

Permalink
fix(processor): don't assume plugin key on messages (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense authored and tivac committed Jan 8, 2020
1 parent c6ebf81 commit 3a5279c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/processor/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ class Processor {

// Export anything from plugins named "modular-css-export*"
result.messages.reduce((out, { plugin, exports : exported }) => {
if(plugin.indexOf("modular-css-export") !== 0) {
if(!plugin || plugin.indexOf("modular-css-export") !== 0) {
return out;
}

Expand Down

0 comments on commit 3a5279c

Please sign in to comment.