Skip to content

Commit 990ce9b

Browse files
committed
avoid destructuring for node < 6 compat
1 parent 1bce36b commit 990ce9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/style-compiler/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ module.exports = function (css, map) {
2626
}
2727

2828
// use the same config loading interface as postcss-loader
29-
loadPostcssConfig(vueOptions.postcss).then(({ plugins, options }) => {
30-
plugins = [trim].concat(plugins)
31-
options = Object.assign({
29+
loadPostcssConfig(vueOptions.postcss).then(config => {
30+
var plugins = [trim].concat(config.plugins)
31+
var options = Object.assign({
3232
to: this.resourcePath,
3333
from: this.resourcePath,
3434
map: false
35-
}, options)
35+
}, config.options)
3636

3737
// add plugin for vue-loader scoped css rewrite
3838
if (query.scoped) {

0 commit comments

Comments
 (0)