fix package example

This commit is contained in:
ad1992 2022-04-21 23:55:38 +05:30
parent 4953828d86
commit 2e8c4d25f2
3 changed files with 3 additions and 4 deletions

View File

@ -316,7 +316,6 @@ export const actionErase = register({
activeTool.lastActiveToolBeforeEraser = appState.activeTool.type; activeTool.lastActiveToolBeforeEraser = appState.activeTool.type;
} }
} }
debugger;
if (isEraserActive(appState)) { if (isEraserActive(appState)) {
if (appState.activeTool.lastActiveToolBeforeEraser) { if (appState.activeTool.lastActiveToolBeforeEraser) {
if ( if (

View File

@ -10,12 +10,12 @@ import { MIME_TYPES } from "../../../constants";
// This is so that we use the bundled excalidraw.development.js file instead // This is so that we use the bundled excalidraw.development.js file instead
// of the actual source code // of the actual source code
const { const {
Excalidraw,
exportToCanvas, exportToCanvas,
exportToSvg, exportToSvg,
exportToBlob, exportToBlob,
sceneCoordsToViewportCoords, sceneCoordsToViewportCoords,
} = window.Excalidraw; } = window.ExcalidrawLib;
const Excalidraw = window.Excalidraw.default;
const STAR_SVG = ( const STAR_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">

View File

@ -9,7 +9,7 @@ const devServerConfig = {
}, },
// Server Configuration options // Server Configuration options
devServer: { devServer: {
port: 3001, //port: 3001,
host: "localhost", host: "localhost",
hot: true, hot: true,
compress: true, compress: true,