mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
Currently the playground is setup as a linked workspace for the
compiler which complicates our yarn workspace setup and means that snap
can sometimes pull in a different version of react than was otherwise
specified.
There's no real reason to have these workspaces combined so let's split
them up.
ghstack-source-id: 56ab064b2f
Pull Request resolved: https://github.com/facebook/react/pull/31081
19 lines
438 B
TypeScript
19 lines
438 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
/**
|
|
* monaco-editor is currently not compatible with ssr
|
|
* https://github.com/vercel/next.js/issues/31692
|
|
*/
|
|
const Editor = dynamic(() => import('./EditorImpl'), {
|
|
ssr: false,
|
|
});
|
|
|
|
export default Editor;
|