Skip to content

Commit

Permalink
Add reactflow with compiler fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Aug 31, 2023
1 parent 2738131 commit 87dce3e
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
"react-input-range": "^1.3.0",
"react-router": "^5.2.1",
"react-use": "^13.27.0",
"reactflow": "11.8.3",
"redux-thunk": "^2.3.0",
"regenerator-runtime": "^0.13.3",
"require-in-the-middle": "^5.0.2",
Expand Down
12 changes: 12 additions & 0 deletions packages/osd-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
},
},
},
{
test: /\.js$/,
include: /node_modules[\\/]@?reactflow/,
use: {
loader: 'babel-loader',
options: {
babelrc: false,
envName: worker.dist ? 'production' : 'development',
presets: [BABEL_PRESET_PATH],
},
},
},
{
test: /\.(html|md|txt|tmpl)$/,
use: {
Expand Down
Loading

0 comments on commit 87dce3e

Please sign in to comment.