Skip to content

Commit

Permalink
fix(ruleset-bundler): remove extraneous 'external dependency' warnings (
Browse files Browse the repository at this point in the history
  • Loading branch information
billiegoose authored May 17, 2023
1 parent ec90876 commit e791534
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ruleset-bundler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export async function bundleRuleset(
if (e.code === 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT') {
return;
}
// The Spectral packages themselves are not included in the bundle.
if (
e.code === 'UNRESOLVED_IMPORT' &&
typeof e.source === 'string' &&
e.source.startsWith('@stoplight/spectral')
) {
return;
}

fn(e);
},
Expand Down

0 comments on commit e791534

Please sign in to comment.