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 6c4cc35 commit e7e4505Copy full SHA for e7e4505
index.js
@@ -49,16 +49,8 @@ function AtImport(options) {
49
return function(styles, result) {
50
const opts = assign({}, options || {})
51
// auto add from option if possible
52
- if (
53
- !opts.from &&
54
- styles &&
55
- styles.nodes &&
56
- styles.nodes[0] &&
57
- styles.nodes[0].source &&
58
- styles.nodes[0].source.input &&
59
- styles.nodes[0].source.input.file
60
- ) {
61
- opts.from = styles.nodes[0].source.input.file
+ if (!opts.from && styles.source.input.file) {
+ opts.from = styles.source.input.file
62
}
63
64
// if from available, prepend from directory in the path array
0 commit comments