Skip to content

Commit

Permalink
Build: (9c8a14c) Trying to keep index.tsx, but not care for it until …
Browse files Browse the repository at this point in the history
…find a better solution.
  • Loading branch information
Alex-NRCan committed Sep 29, 2023
1 parent 7eff368 commit 447c1a2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20811,17 +20811,22 @@ var App = function App() {
;// CONCATENATED MODULE: ./src/index.tsx


// TODO: How can we make the components using this package not care about this file, but keep it here for when we run GeoChart standalone? We don't want to create a chart in a root node when we import this chart package.

// Fetch the cgpv module

var w = window;
var cgpv = w['cgpv'];
var react = cgpv.react,
createRoot = cgpv.createRoot;
console.log("geochart index.tsx run");
var container = createRoot(document.getElementById("root"));
container.render( /*#__PURE__*/(0,jsx_runtime.jsx)(react.StrictMode, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_App, {})
}));
var root = document.getElementById("root");
if (root) {
var container = createRoot(document.getElementById("root"));
container.render( /*#__PURE__*/(0,jsx_runtime.jsx)(react.StrictMode, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_App, {})
}));
}
})();

/******/ })()
Expand Down

0 comments on commit 447c1a2

Please sign in to comment.