Skip to content

Commit df0a536

Browse files
committed
fix: Don't cache the template entry points.
1 parent 0beb9a7 commit df0a536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@css-blocks/broccoli/src/Analyze.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ export class CSSBlocksAnalyze extends BroccoliPlugin {
9494
FSTree.applyPatch(input, output, nonBlockFileChanges);
9595

9696
// When no entry points are passed, we treat *every* template as an entry point.
97-
this.entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input });
97+
let entries = this.entries.length ? this.entries : glob.sync("**/*.hbs", { cwd: input });
9898

9999
// Oh hey look, we're analyzing.
100100
this.analyzer.reset();
101101
this.transport.reset();
102-
await this.analyzer.analyze(input, this.entries);
102+
await this.analyzer.analyze(input, entries);
103103

104104
// Compile all Blocks and add them as sources to the Optimizer.
105105
// TODO: handle a sourcemap from compiling the block file via a preprocessor.

0 commit comments

Comments
 (0)