A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Prevent vite from misencoding data-uri (#1251)
Dylan Madisetti06bb939a0148
diff --git a/frontend/islands/validate.sh b/frontend/islands/validate.shindex 943bece381..2f6f516a44 100755--- a/frontend/islands/validate.sh+++ b/frontend/islands/validate.sh@@ -22,6 +22,14 @@ if [ $? -eq 0 ]; thenexit 1fi+echo "[validate: data uri does not convert data:video/mp2t]"+grep -R "data:video/mp2t" $(pwd)/dist+if [ $? -eq 0 ]; then+ echo "mininification misencoded typescript data uri."+ echo "Try naming the file with a .tsx extension."+ exit 1+fi+echo "[validate: files dist/main.js and dist/style.css exist]"if [ ! -f "$OUT_DIR/main.js" ] || [ ! -f "$OUT_DIR/style.css" ]; thenecho "dist/main.js or dist/style.css does not exist"diff --git a/frontend/src/core/islands/bridge.ts b/frontend/src/core/islands/bridge.tsindex 071f16d2fe..eadf8ee5a1 100644--- a/frontend/src/core/islands/bridge.ts+++ b/frontend/src/core/islands/bridge.ts@@ -40,7 +40,7 @@ export class IslandsPyodideBridge implements RunRequests, EditRequests {private constructor() {// TODO: abstract out into a worker constructor- const js = `import ${JSON.stringify(new URL("worker/worker.ts", import.meta.url))}`;+ const js = `import ${JSON.stringify(new URL("worker/worker.tsx", import.meta.url))}`;const blob = new Blob([js], { type: "application/javascript" });const objURL = URL.createObjectURL(blob);const worker = new Worker(diff --git a/frontend/src/core/islands/worker/worker.ts b/frontend/src/core/islands/worker/worker.tsxsimilarity index 100%rename from frontend/src/core/islands/worker/worker.tsrename to frontend/src/core/islands/worker/worker.tsx