2
0
Aakansha Doshi 1 жил өмнө
parent
commit
e48eed6b21

+ 1 - 1
scripts/buildExample.mjs

@@ -4,7 +4,7 @@ import { execSync } from "child_process";
 
 
 const createDevBuild = async () => {
 const createDevBuild = async () => {
   return await esbuild.build({
   return await esbuild.build({
-    entryPoints: ["../../examples/excalidraw/with-script-in-browser/index.tsx"],
+  entryPoints: ["../../examples/excalidraw/with-script-in-browser/index.tsx"],
     outfile:
     outfile:
       "../../examples/excalidraw/with-script-in-browser/public/bundle.js",
       "../../examples/excalidraw/with-script-in-browser/public/bundle.js",
     define: {
     define: {

+ 2 - 0
scripts/buildPackage.js

@@ -53,6 +53,7 @@ const browserConfig = {
     ".woff2": "copy",
     ".woff2": "copy",
     ".ttf": "copy",
     ".ttf": "copy",
   },
   },
+  external: ["@excalidraw/utils"],
 };
 };
 const createESMBrowserBuild = async () => {
 const createESMBrowserBuild = async () => {
   // Development unminified build with source maps
   // Development unminified build with source maps
@@ -107,6 +108,7 @@ const rawConfig = {
     ".json": "copy",
     ".json": "copy",
   },
   },
   packages: "external",
   packages: "external",
+  external: ["@excalidraw/utils"],
 };
 };
 
 
 const createESMRawBuild = async () => {
 const createESMRawBuild = async () => {