Skip to content

Commit

Permalink
iife worker in rust prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp committed Dec 22, 2023
1 parent 4e1b466 commit 0cbc4fa
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 17 deletions.
3 changes: 2 additions & 1 deletion packages/codemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/doenetml-prototype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.css",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { DoenetMLFlags, defaultFlags } from "../../../DoenetML";
export function createWrappedCoreWorker() {
// TODO: after merge in #69, change to type: "classic"
const worker = new Worker(doenetGlobalConfig.doenetWorkerUrl, {
type: "module",
type: "classic",
});

return Comlink.wrap(worker) as Comlink.Remote<CoreWorker>;
Expand Down
3 changes: 2 additions & 1 deletion packages/doenetml-worker-rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"files": [
"src/**/*.ts",
"src/**/*.js",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/doenetml-worker-rust/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ export default defineConfig({
sourcemap: true,
lib: {
entry: "src/index.ts",
fileName: "index",
formats: ["es"],
fileName: (_format, _entryName) => "index.js",
formats: ["iife"],
name: "doenetmlWorker2",
},
},
});
3 changes: 2 additions & 1 deletion packages/doenetml-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"files": [
"src/**/*.ts",
"src/**/*.js",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/doenetml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"src/**/*.js",
"src/**/*.jsx",
"src/**/*.css",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/lsp-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/static-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/test-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/virtual-keyboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"command": "vite build",
"files": [
"src/**/*.ts",
"tsconfig.json"
"tsconfig.json",
"vite.config.ts"
],
"output": [
"dist/**/*.js",
Expand Down

0 comments on commit 0cbc4fa

Please sign in to comment.