Skip to content

Commit

Permalink
fix: Don't cache the template entry points.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Feb 23, 2020
1 parent 0beb9a7 commit df0a536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@css-blocks/broccoli/src/Analyze.ts
Expand Up @@ -94,12 +94,12 @@ export class CSSBlocksAnalyze extends BroccoliPlugin {
FSTree.applyPatch(input, output, nonBlockFileChanges);

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

// Oh hey look, we're analyzing.
this.analyzer.reset();
this.transport.reset();
await this.analyzer.analyze(input, this.entries);
await this.analyzer.analyze(input, entries);

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

0 comments on commit df0a536

Please sign in to comment.