mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
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:
parent
53f531edbf
commit
e5bf59fd9b
10 changed files with 34 additions and 5 deletions
14
packages/docusaurus-theme-common/Details.d.ts
vendored
Normal file
14
packages/docusaurus-theme-common/Details.d.ts
vendored
Normal 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';
|
Loading…
Add table
Add a link
Reference in a new issue