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.
2 parents 6ad8005 + b4d24bb commit 94d222bCopy full SHA for 94d222b
index.js
@@ -47,14 +47,11 @@ function AtImport(options) {
47
// auto add from option if possible
48
if (
49
!opts.from &&
50
- styles &&
51
- styles.nodes &&
52
- styles.nodes[0] &&
53
- styles.nodes[0].source &&
54
- styles.nodes[0].source.input &&
55
- styles.nodes[0].source.input.file
+ styles.source &&
+ styles.source.input &&
+ styles.source.input.file
56
) {
57
- opts.from = styles.nodes[0].source.input.file
+ opts.from = styles.source.input.file
58
}
59
60
// if from available, prepend from directory in the path array
0 commit comments