(options)
| 30 | |
| 31 | class="cm">// RegExp survives the JSON round-trip as a plain marker object. |
| 32 | const webpack = (options) => { |
| 33 | fs.writeFileSync( |
| 34 | process.env.WEBPACK_CLI_TEST_CAPTURE, |
| 35 | JSON.stringify(options, (key, value) => |
| 36 | value instanceof RegExp |
| 37 | ? { source: value.source, flags: value.flags } |
| 38 | : value |
| 39 | ) |
| 40 | ); |
| 41 | return { options }; |
| 42 | }; |
| 43 | |
| 44 | class="cm">// build only calls getArguments(undefined); ignore it and describe our schema. |
| 45 | webpack.cli = { |
no outgoing calls