File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
app/components/sandbox/CodeEditor Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ type Props = {
22
22
} ;
23
23
24
24
const CodeMirror = Loadable ( {
25
- loader : ( ) => import ( /* webpackChunkName: 'codemirror' */ './CodeMirror' ) ,
25
+ loader : ( ) =>
26
+ import ( /* webpackChunkName: 'codemirror-editor' */ './CodeMirror' ) ,
26
27
LoadingComponent : Loading ,
27
28
} ) ;
28
29
Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ import Header from './components/Header';
19
19
import Content from './components/Content' ;
20
20
import Sidebar from './components/Sidebar' ;
21
21
22
+ // Okay, this looks veeeery strange, we need this because Webpack has a bug currently
23
+ // that makes it think we have core-js/es6/map available in embed, but we don't.
24
+ // So we explicitly make sure that we have `core-js/es6/map` available by declaring
25
+ // new Map.
26
+ // eslint-disable-next-line
27
+ new Map ( ) ;
28
+
22
29
const Container = styled . div `
23
30
display: flex;
24
31
flex-direction: column;
You can’t perform that action at this time.
0 commit comments