Skip to content

Commit

Permalink
correctly ignore @embroider/macros in our Audit
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Apr 25, 2024
1 parent cccf207 commit 45479dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/compat/src/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ export class Audit {

private inspectImports(filename: string, module: CompleteModule, modules: Record<string, Module>) {
for (let imp of module.imports) {
// our Audit should always ignore any imports of @embroider/macros because we already ignored them
// in resolveId above
if (imp.source === '@embroider/macros') {
continue;
}
let resolved = module.resolutions[imp.source];
if (!resolved) {
this.findings.push({
Expand Down

0 comments on commit 45479dc

Please sign in to comment.