fix(excalidraw): use esm.sh ?alias param to force React 18.3.1 across entire dependency tree
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 13s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 13s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
This commit is contained in:
@@ -51,7 +51,7 @@ class ErrorBoundary extends React.Component {
|
||||
|
||||
try {
|
||||
window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/[email protected]/dist/prod/';
|
||||
const ExcalidrawLib = await import('@excalidraw/[email protected]');
|
||||
const ExcalidrawLib = await import('https://esm.sh/@excalidraw/[email protected]?alias=react:[email protected],react-dom:[email protected]');
|
||||
const { Excalidraw } = ExcalidrawLib;
|
||||
add('Excalidraw loaded', 'pass');
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
<script type="module">
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import * as ExcalidrawLib from "@excalidraw/[email protected]";
|
||||
import * as ExcalidrawLib from "https://esm.sh/@excalidraw/[email protected]?alias=react:[email protected],react-dom:[email protected]";
|
||||
|
||||
window.React = React;
|
||||
window.ReactDOM = ReactDOM;
|
||||
|
||||
Reference in New Issue
Block a user