Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/documentation-framework/scripts/cli/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ async function execFile(file, args) {
const child_execArgv = [
'--max-old-space-size=4096'
];

if (args.legacySSL) {
child_execArgv.push('--openssl-legacy-provider')
}

const child = fork(path.join(__dirname, file), child_argv, { execArgv: child_execArgv });
function errorHandler(err) {
console.error(err);
Expand Down Expand Up @@ -78,6 +83,7 @@ async function build(cmd, options) {
const config = getConfig(options);
config.analyze = options.analyze;
config.output = options.output;
config.legacySSL = options.legacySSL

// These get passed to `fork`ed builds
process.env.pathPrefix = config.pathPrefix;
Expand Down
1 change: 1 addition & 0 deletions packages/documentation-framework/scripts/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ program
.command('build <server|client|all>')
.option('-a, --analyze', 'use webpack-bundle-analyzer', false)
.option('-o, --output <folder>', 'output folder', 'public')
.option('--legacySSL', 'use legacy version of openssl, needed to support Node 18 until we upgrade webpack to v5', false)
.description('generates source files and runs webpack')
.action((cmd, options) => {
const { build } = require('./build');
Expand Down