@motiadev/workbench 0.17.1-beta.183-843379 → 0.17.1-beta.183-312326

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/middleware.js +28 -8
  2. package/package.json +4 -4
@@ -1,6 +1,7 @@
1
1
  import { Printer } from "@motiadev/core";
2
2
  import react from "@vitejs/plugin-react";
3
3
  import fs, { existsSync } from "fs";
4
+ import { createRequire } from "module";
4
5
  import path from "path";
5
6
  import { fileURLToPath } from "url";
6
7
  import { createServer } from "vite";
@@ -636,6 +637,7 @@ const reoPlugin = () => {
636
637
  };
637
638
  };
638
639
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
640
+ const require = createRequire(import.meta.url);
639
641
  const warmupMotiaPlugins = async (viteServer) => {
640
642
  try {
641
643
  if ((await viteServer.transformRequest(CONSTANTS.VIRTUAL_MODULE_ID))?.code) printer.printPluginLog("Plugin system warmed up eagerly");
@@ -664,15 +666,33 @@ const applyMiddleware = async ({ app, port, workbenchBase, plugins }) => {
664
666
  path.join(__dirname, "./node_modules")
665
667
  ] }
666
668
  },
667
- resolve: { alias: {
668
- "@": path.resolve(__dirname, "./src"),
669
- "@/assets": path.resolve(__dirname, "./src/assets"),
670
- "lucide-react/dynamic": "lucide-react/dynamic.mjs",
671
- "lucide-react": "lucide-react/dist/cjs/lucide-react.js"
672
- } },
673
- optimizeDeps: { exclude: ["@motiadev/workbench"] },
669
+ resolve: {
670
+ alias: {
671
+ "@": path.resolve(__dirname, "./src"),
672
+ "@/assets": path.resolve(__dirname, "./src/assets"),
673
+ "lucide-react/dynamic": "lucide-react/dynamic.mjs",
674
+ "lucide-react": "lucide-react/dist/cjs/lucide-react.js"
675
+ },
676
+ dedupe: [
677
+ "react",
678
+ "react-dom",
679
+ "react/jsx-runtime",
680
+ "react/jsx-dev-runtime",
681
+ "react/compiler-runtime"
682
+ ]
683
+ },
684
+ optimizeDeps: {
685
+ exclude: ["@motiadev/workbench"],
686
+ include: [
687
+ "react",
688
+ "react-dom",
689
+ "react/jsx-runtime",
690
+ "react/jsx-dev-runtime",
691
+ "react/compiler-runtime"
692
+ ]
693
+ },
674
694
  plugins: [
675
- react({ babel: { plugins: ["babel-plugin-react-compiler"] } }),
695
+ react({ babel: { plugins: [[require.resolve("babel-plugin-react-compiler"), {}]] } }),
676
696
  processCwdPlugin(),
677
697
  reoPlugin(),
678
698
  motiaPluginsPlugin(plugins),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@motiadev/workbench",
3
3
  "description": "A web-based interface for building and managing Motia workflows.",
4
- "version": "0.17.1-beta.183-843379",
4
+ "version": "0.17.1-beta.183-312326",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -39,9 +39,9 @@
39
39
  "vite": "^7.2.4",
40
40
  "zod": "^4.1.13",
41
41
  "zustand": "^5.0.8",
42
- "@motiadev/core": "0.17.1-beta.183-843379",
43
- "@motiadev/ui": "0.17.1-beta.183-843379",
44
- "@motiadev/stream-client-react": "0.17.1-beta.183-843379"
42
+ "@motiadev/core": "0.17.1-beta.183-312326",
43
+ "@motiadev/ui": "0.17.1-beta.183-312326",
44
+ "@motiadev/stream-client-react": "0.17.1-beta.183-312326"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@rollup/plugin-babel": "^6.1.0",