/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // Text snapshots are built with "docusaurus build --dev", using React dev SSR. // For client-rendered Suspense boundaries (e.g. ), React dev // emits debug attributes that production never emits, including a full // component stack with line numbers, creating noisy text snapshot diffs. // Digest "" means an intentional browser() bailout, not an SSR error. // Blog feeds embed the blog post HTML, so they contain these attributes too. import fs from 'node:fs/promises'; import path from 'node:path'; import {format} from 'oxfmt'; import xmlFormat from 'xml-formatter'; const buildDir = path.resolve(import.meta.dirname, '../website/build'); const BrowserBailoutTemplateRegex = /