diff --git a/packages/snippets/core/build.cjs b/packages/snippets/core/build.cjs index 4eca79023bd..00c29a8a8bf 100644 --- a/packages/snippets/core/build.cjs +++ b/packages/snippets/core/build.cjs @@ -13,6 +13,11 @@ async function main() { minify: true, dts: true, outDir: 'dist', + external: [ + // Exclude the optional dependencies that aren't supported in the browser. + 'prettier', + '@redocly/openapi-core' + ], tsconfig: "./build.tsconfig.json" });