Skip to content

Commit e791534

Browse files
authored
fix(ruleset-bundler): remove extraneous 'external dependency' warnings (#2475)
1 parent ec90876 commit e791534

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/ruleset-bundler/src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ export async function bundleRuleset(
3535
if (e.code === 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT') {
3636
return;
3737
}
38+
// The Spectral packages themselves are not included in the bundle.
39+
if (
40+
e.code === 'UNRESOLVED_IMPORT' &&
41+
typeof e.source === 'string' &&
42+
e.source.startsWith('@stoplight/spectral')
43+
) {
44+
return;
45+
}
3846

3947
fn(e);
4048
},

0 commit comments

Comments
 (0)