diff --git a/packages/ruleset-bundler/src/index.ts b/packages/ruleset-bundler/src/index.ts index 38acec50f..e4acb8c2f 100644 --- a/packages/ruleset-bundler/src/index.ts +++ b/packages/ruleset-bundler/src/index.ts @@ -36,7 +36,10 @@ export async function bundleRuleset( : target === 'browser' ? id => isURL(id) : (id, importer) => - id.startsWith('node:') || (!isURL(id) && isPackageImport(id) && (importer === void 0 || !isURL(importer))), + id.startsWith('node:') || + (!isURL(id) && + isPackageImport(id) && + (importer === void 0 || !isURL(importer) || id.startsWith('@stoplight/spectral-'))), }); return (await bundle.generate({ format: format ?? (target === 'runtime' ? 'iife' : 'esm'), exports: 'auto' }))