Skip to content

Commit ecf623a

Browse files
committed
fix(rewriter): Get rewriter via a callback instead of through options to avoid serialization.
1 parent bdf1580 commit ecf623a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jsx-analyzer/src/transformer/webpackLoader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function CSSBlocksWebpackAdapter(this: any, source: any, map: any
3232
options = loaderUtils.getOptions(this);
3333
}
3434

35-
let rewriter = options.rewriter;
35+
let rewriter = options.getRewriter();
3636
rewriter.blocks = (rewriter.blocks || {});
3737

3838
this.dependency(path);

0 commit comments

Comments
 (0)