Skip to content

Commit

Permalink
Merge pull request galaxyproject#16047 from dannon/fix-parcel-plugin-…
Browse files Browse the repository at this point in the history
…node18

Fixes the parcel2 build for hdf5 viz when using node18.
  • Loading branch information
davelopez authored May 5, 2023
2 parents 9d59c38 + 74732f7 commit 41d93e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ function buildPlugins(callback, forceRebuild) {
};
// if node version is >16, set NODE_OPTIONS to use legacy openssl provider
if (process.versions.node.split(".")[0] > "16") {
opts.env = { ...process.env, NODE_OPTIONS: "--openssl-legacy-provider" };
opts.env = {
...process.env,
PARCEL_WORKER_BACKEND: "process",
NODE_OPTIONS: "--openssl-legacy-provider",
};
}
if (child_process.spawnSync("yarn", ["build"], opts).status === 0) {
console.log(`Successfully built, saving build state to ${hashFilePath}`);
Expand Down

0 comments on commit 41d93e9

Please sign in to comment.