MCPcopy
hub / github.com/redwoodjs/graphql / getDevNodeOptions

Function getDevNodeOptions

packages/cli/src/commands/devHandler.js:246–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 * @returns {string}
245 */
246export function getDevNodeOptions() {
247 const { NODE_OPTIONS } = process.env
248 const enableSourceMapsOption = '--enable-source-maps'
249
250 if (!NODE_OPTIONS) {
251 return enableSourceMapsOption
252 }
253
254 if (NODE_OPTIONS.includes(enableSourceMapsOption)) {
255 return NODE_OPTIONS
256 }
257
258 return `${NODE_OPTIONS} ${enableSourceMapsOption}`
259}

Callers 2

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected