refactor: mark a few client-side packages as side-effect-free (#7085)

* refactor: mark a few client-side packages as side-effect-free

* fix

* fix again

* fix...

* revert sideeffect

* revert

* fix again...

* properly fix

* fix

* properly fix
This commit is contained in:
Joshua Chen 2022-04-09 09:08:18 +08:00 committed by GitHub
parent 53f531edbf
commit e5bf59fd9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 34 additions and 5 deletions

View file

@ -0,0 +1,14 @@
/**
* 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.
*/
// `Details` is a separate export entry because of side-effects messing with CSS
// insertion order. See https://github.com/facebook/docusaurus/pull/7085.
// However, because TS doesn't recognize `exports` (also a problem in
// `content-docs`), we have to manually create a stub.
// eslint-disable-next-line import/named
export {Details, type DetailsProps} from './lib/components/Details';