Skip to content

Commit bdf1580

Browse files
committed
fix(analyzer): Seal the analysis before using it.
1 parent 44a830b commit bdf1580

File tree

1 file changed

+1
-0
lines changed
  • packages/jsx-analyzer/src/transformer

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default function mkTransform(tranformOpts: { rewriter: Rewriter }): () =>
9999

100100
let elementAnalysis = this.elementAnalyzer.analyze(path);
101101
if (elementAnalysis) {
102+
elementAnalysis.seal();
102103
let classMapping = this.mapping.simpleRewriteMapping(elementAnalysis);
103104
let attributeValue: JSXAttribute['value'] | undefined = undefined;
104105
let newClassAttr: JSXAttribute | undefined = undefined;

0 commit comments

Comments
 (0)