Skip to content

Commit 90991ad

Browse files
committed
fix: pass options when evaluating a component
1 parent 81419a5 commit 90991ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/babel/extract.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ module.exports = function extract(babel: any, options: Options = {}) {
447447
let { value } = evaluate(
448448
styled.component,
449449
t,
450-
state.file.opts.filename
450+
state.file.opts.filename,
451+
undefined,
452+
options
451453
);
452454

453455
while (isValidElementType(value) && value.className) {

0 commit comments

Comments
 (0)