@saltcorn/workflow-editor 1.6.3-beta.1 → 1.7.0-alpha.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/workflow-editor",
3
- "version": "1.6.3-beta.1",
3
+ "version": "1.7.0-alpha.1",
4
4
  "description": "React Flow-based workflow editor for Saltcorn",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
package/webpack.config.js CHANGED
@@ -25,8 +25,8 @@ module.exports = {
25
25
  resolve: {
26
26
  extensions: [".js", ".jsx"],
27
27
  alias: { // Fix: Ensure only one copy of React is used
28
- react: path.resolve(__dirname, "node_modules/react"),
29
- "react-dom": path.resolve(__dirname, "node_modules/react-dom"),
28
+ react: path.dirname(require.resolve("react/package.json")),
29
+ "react-dom": path.dirname(require.resolve("react-dom/package.json")),
30
30
  },
31
31
  fallback: { "process/browser": require.resolve("process/browser") },
32
32
  },