File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ registerCSSInterfaceWithDefaultTheme();
2020const path = './scripts/renderAllComponents.jsx' ;
2121const CSS = compileCSS ( path ) ;
2222
23+ if ( CSS === '' ) {
24+ throw new Error ( 'Failed to compile CSS' ) ;
25+ } else {
26+ console . log ( 'CSS compilation complete.' ) ;
27+ }
28+
2329const format = new CleanCSS ( {
2430 level : optimizeForProduction ? 2 : 0 ,
2531 format : 'beautify' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ import DateRangePickerWrapper from '../examples/DateRangePickerWrapper';
55import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper' ;
66import PresetDateRangePickerWrapper from '../examples/PresetDateRangePicker' ;
77
8+ if ( ! document . getElementById ( 'root' ) ) {
9+ // Make sure the #root element is defined
10+ const root = document . createElement ( 'div' ) ;
11+ root . id = 'root' ;
12+ document . body . appendChild ( root ) ;
13+ }
14+
815function App ( ) {
916 return (
1017 < div >
You can’t perform that action at this time.
0 commit comments